]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetGraphics.cpp
Add Nomenclature to the TOC.
[lyx.git] / src / insets / InsetGraphics.cpp
index 2aec82fbf55269b0d7d083983fef508698b528f8..70b43c4da1c851ce540ce7483966523aa002a26b 100644 (file)
@@ -110,7 +110,7 @@ string findTargetFormat(string const & format, OutputParams const & runparams)
                Format const * const f = formats.getFormat(format);
                // Convert vector graphics to pdf
                if (f && f->vectorFormat())
-                       return "pdf";
+                       return "pdf6";
                // pdflatex can use jpeg, png and pdf directly
                if (format == "jpg")
                        return format;
@@ -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));
 }