]> git.lyx.org Git - features.git/commitdiff
Don't hide the library directory when it appears alone
authorEnrico Forestieri <forenr@lyx.org>
Wed, 14 Mar 2007 00:36:25 +0000 (00:36 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 14 Mar 2007 00:36:25 +0000 (00:36 +0000)
src/support/filetools.C
(makeDisplayPath): do not shorten path when it is the libdir one.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17442 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.C

index bc0e1db2dca97c6b7b65b878fcbdeb56bd36c621..1b616019b09c467c11bec5e62889a5d47ed2b5d3 100644 (file)
@@ -1004,7 +1004,7 @@ docstring const makeDisplayPath(string const & path, unsigned int threshold)
 
        // If file is from LyXDir, display it as if it were relative.
        string const system = package().system_support();
-       if (prefixIs(str, system))
+       if (prefixIs(str, system) && str != system)
                return from_utf8("[" + str.erase(0, system.length()) + "]");    
 
        // replace /home/blah with ~/