]> git.lyx.org Git - features.git/commitdiff
Small glitch in RCS registering procedure, useless parse of wrong file (part of 5389).
authorPavel Sanda <sanda@lyx.org>
Mon, 27 Oct 2008 01:06:24 +0000 (01:06 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 27 Oct 2008 01:06:24 +0000 (01:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27144 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXVC.cpp
src/VCBackend.cpp

index 5b510ae0f3ac07c7176c5dc3ca602c074aabf893..7f5beea70469da18e83b83497f21adf1b002ede0 100644 (file)
@@ -122,7 +122,7 @@ void LyXVC::registrer()
                } else {
                        LYXERR(Debug::LYXVC, "LyXVC: registering "
                                << to_utf8(filename.displayName()) << " with RCS");
-                       vcs.reset(new RCS(filename));
+                       vcs.reset(new RCS(FileName()));
                }
 
                vcs->owner(owner_);
index 806c795282d33b4ff99fd2e66058532f8df756ac..1def1af1b062503985f860688b16a6b33916cc60 100644 (file)
@@ -102,6 +102,9 @@ void RCS::retrieve(FileName const & file)
 
 void RCS::scanMaster()
 {
+       if (master_.empty())
+               return;
+
        LYXERR(Debug::LYXVC, "LyXVC::RCS: scanMaster: " << master_);
 
        ifstream ifs(master_.toFilesystemEncoding().c_str());