]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Move protectArgument function to lstrings
[lyx.git] / src / insets / InsetGraphics.cpp
index d1458c05a3dc8df58e667226a05d7048a06e0ada..b41d72bc70083d132742ee48ef3b851aeb576251 100644 (file)
@@ -1036,11 +1036,11 @@ void InsetGraphics::editGraphics(InsetGraphicsParams const & p) const
 
 
 void InsetGraphics::addToToc(DocIterator const & cpit, bool output_active,
-                                                        UpdateType) const
+                                                        UpdateType, TocBackend & backend) const
 {
        //FIXME UNICODE
        docstring const str = from_utf8(params_.filename.onlyFileName());
-       TocBuilder & b = buffer().tocBackend().builder("graphics");
+       TocBuilder & b = backend.builder("graphics");
        b.pushItem(cpit, str, output_active);
        b.pop();
 }