]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
Account for old versions of Pygments
[lyx.git] / src / LyXVC.cpp
index 1572a036d24e8c331142713650f7e049c4304f8a..97a0554e8c4212a73acb648f773541dc0311219d 100644 (file)
@@ -45,10 +45,10 @@ docstring LyXVC::vcstatus() const
 {
        if (!vcs)
                return docstring();
-               if (locking())
-                       return bformat(_("%1$s lock"), from_ascii(vcs->vcname()));
-               else
-                       return from_ascii(vcs->vcname());
+       if (locking())
+               return bformat(_("%1$s lock"), from_ascii(vcs->vcname()));
+       else
+               return from_ascii(vcs->vcname());
 }
 
 
@@ -262,7 +262,7 @@ string LyXVC::checkOut()
        if (!vcs)
                return string();
        //RCS allows checkOut only in ReadOnly mode
-       if (vcs->toggleReadOnlyEnabled() && !owner_->isReadonly())
+       if (vcs->toggleReadOnlyEnabled() && !owner_->hasReadonlyFlag())
                return string();
 
        LYXERR(Debug::LYXVC, "LyXVC: checkOut");
@@ -335,7 +335,7 @@ string LyXVC::toggleReadOnly()
        }
        case VCS::NOLOCKING:
                Buffer * b = vcs->owner();
-               bool const newstate = !b->isReadonly();
+               bool const newstate = !b->hasReadonlyFlag();
                string result = "LyXVC: toggle to ";
                result += (newstate ? "readonly" : "readwrite");
                LYXERR(Debug::LYXVC, result);