From c73d9adeb7dcb52fec5beb8ece6eb48848e72875 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 26 Feb 2012 23:09:25 +0000 Subject: [PATCH] Simplify & fix InsetGraphics tooltip, DocFileName inherits from FileName. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40797 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetGraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index 733d4c6cc7..38cbfa72fc 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -1091,7 +1091,7 @@ string InsetGraphics::params2string(InsetGraphicsParams const & params, docstring InsetGraphics::toolTip(BufferView const &, int, int) const { - return from_utf8(FileName(params().filename.relFileName()).onlyFileName()); + return from_utf8(params().filename.onlyFileName()); } namespace graphics { -- 2.39.2