]> git.lyx.org Git - features.git/commitdiff
Simplify & fix InsetGraphics tooltip, DocFileName inherits from FileName.
authorPavel Sanda <sanda@lyx.org>
Sun, 26 Feb 2012 23:09:25 +0000 (23:09 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 26 Feb 2012 23:09:25 +0000 (23:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40797 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetGraphics.cpp

index 733d4c6cc75b4329e8fd9ff94136036b2c6c9b4b..38cbfa72fc3b3e6a3eb3a326ce1b5e5bae2464f0 100644 (file)
@@ -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 {