]> git.lyx.org Git - features.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4771
authorAbdelrazak Younes <younes@lyx.org>
Mon, 5 May 2008 06:56:43 +0000 (06:56 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 5 May 2008 06:56:43 +0000 (06:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24609 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetGraphics.cpp

index dce13c03fb3a2864f98276854699b5aa9e2a4b35..2f6f4ab2ea2d625d6f6381470f993121a70543e8 100644 (file)
@@ -910,7 +910,8 @@ void InsetGraphics::addToToc(ParConstIterator const & cpit) const
 {
        TocBackend & backend = buffer().tocBackend();
 
-       docstring const str = params_.filename.displayName();
+       //FIXME UNICODE
+       docstring const str = from_utf8(params_.filename.onlyFileName());
        backend.toc("graphics").push_back(TocItem(cpit, 0, str));
 }