From 592d53e065f99b96e8722c450f65c6102197f8c5 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 5 May 2008 06:56:43 +0000 Subject: [PATCH] Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4771 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24609 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetGraphics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/insets/InsetGraphics.cpp b/src/insets/InsetGraphics.cpp index dce13c03fb..2f6f4ab2ea 100644 --- a/src/insets/InsetGraphics.cpp +++ b/src/insets/InsetGraphics.cpp @@ -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)); }