Don't hide the library directory when it appears alone

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
This commit is contained in:
Enrico Forestieri 2007-03-14 00:36:25 +00:00
parent de0af94c83
commit faa47db187

View 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 ~/