]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetGraphics.cpp
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4771
[features.git] / 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));
 }