]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/epstools.cpp
Fix more warnings and simplify a tiny bit.
[lyx.git] / src / graphics / epstools.cpp
index 17aedfcb0ab7d04ddd0b0a9f423b9c5fcc074294..d5674ba7d18205c168bb05318e9165ba34469bc6 100644 (file)
@@ -26,6 +26,7 @@
 #include "Format.h"
 
 #include "support/debug.h"
+#include "support/docstream.h"
 #include "support/filetools.h"
 #include "support/FileName.h"
 #include "support/regex.h"
@@ -46,9 +47,9 @@ string const readBB_from_PSFile(FileName const & file)
        // end of the file. Than we have in the header:
        // %%BoundingBox: (atend)
        // In this case we must check the end.
-       bool const zipped = formats.isZippedFile(file);
+       bool const zipped = theFormats().isZippedFile(file);
        FileName const file_ = zipped ? unzipFile(file) : file;
-       string const format = formats.getFormatFromFile(file_);
+       string const format = theFormats().getFormatFromFile(file_);
 
        if (!Formats::isPostScriptFileFormat(format)) {
                LYXERR(Debug::GRAPHICS, "[readBB_from_PSFile] no(e)ps-format");