]> git.lyx.org Git - features.git/commitdiff
ensure VCS::checkparentdirs() starts with an absolute path (ticket #8295)
authorStephan Witt <switt@lyx.org>
Thu, 16 Aug 2012 11:44:20 +0000 (13:44 +0200)
committerStephan Witt <switt@lyx.org>
Thu, 16 Aug 2012 11:47:27 +0000 (13:47 +0200)
src/VCBackend.cpp

index ced550df1c992ae3bea8e62e27e4403b0a5f6c5f..55a145cbf87ba4d1e4764f52d7cfdd11024b5ace 100644 (file)
@@ -100,7 +100,7 @@ bool VCS::makeRCSRevision(string const &version, string &revis) const
 
 bool VCS::checkparentdirs(FileName const & file, std::string const & pathname)
 {
-       FileName dirname = file.onlyPath();
+       FileName dirname = FileName(file.absFileName()).onlyPath();
        FileName tocheck = FileName(addName(dirname.absFileName(),pathname));
        LYXERR(Debug::LYXVC, "check file: " << tocheck.absFileName());
        bool result = tocheck.exists();