From faa47db187ee2150d1a2826d8500e08f656749d7 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 14 Mar 2007 00:36:25 +0000 Subject: [PATCH] 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 --- src/support/filetools.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ~/ -- 2.39.2