Minor code simplification.

This commit is contained in:
Richard Heck 2013-03-27 18:36:01 -04:00
parent d3feabfc86
commit 1f6f5d2d53

View File

@ -1049,11 +1049,9 @@ void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
void InsetGraphics::addToToc(DocIterator const & cpit, bool output_active) const
{
TocBackend & backend = buffer().tocBackend();
//FIXME UNICODE
docstring const str = from_utf8(params_.filename.onlyFileName());
backend.toc("graphics").push_back(TocItem(cpit, 0, str, output_active));
buffer().tocBackend().toc("graphics").push_back(TocItem(cpit, 0, str, output_active));
}