From: Enrico Forestieri Date: Wed, 14 Mar 2007 00:36:25 +0000 (+0000) Subject: Don't hide the library directory when it appears alone X-Git-Tag: 1.6.10~10598 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=faa47db187ee2150d1a2826d8500e08f656749d7;p=features.git 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 --- diff --git a/src/support/filetools.C b/src/support/filetools.C index bc0e1db2dc..1b616019b0 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -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 ~/