mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 14:58:36 +00:00
Minor code simplification.
This commit is contained in:
parent
d3feabfc86
commit
1f6f5d2d53
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user