]> git.lyx.org Git - features.git/commitdiff
Set cvs registration process to the document directory.
authorPavel Sanda <sanda@lyx.org>
Mon, 21 Jul 2008 00:18:19 +0000 (00:18 +0000)
committerPavel Sanda <sanda@lyx.org>
Mon, 21 Jul 2008 00:18:19 +0000 (00:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25747 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXVC.cpp

index 930680b33bd262373a3210c78f7b68a4a6e0df50..b79d4f9426fff7c7fd511ac13391fef83f1db1d6 100644 (file)
@@ -96,7 +96,8 @@ void LyXVC::registrer()
 
        // it is very likely here that the vcs is not created yet...
        if (!vcs) {
-               FileName const cvs_entries(makeAbsPath("CVS/Entries"));
+               //check in the root directory of the document
+               FileName const cvs_entries(onlyPath(filename.absFilename()) + "/CVS/Entries");
 
                if (cvs_entries.isReadableFile()) {
                        LYXERR(Debug::LYXVC, "LyXVC: registering "