]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.cpp
GuiDocument: some polishing of the list of modules.
[lyx.git] / src / graphics / GraphicsCache.cpp
index d36de0fbe260257bf88627a8efffe74dd691bc69..5ed905252d71343d9571aea74b975eb2c4d88e3b 100644 (file)
 
 #include "Format.h"
 
+#include "frontends/Application.h"
+
 #include "support/debug.h"
 #include "support/FileName.h"
 #include "support/filetools.h"
-#include "support/imagetools.h"
 
 #include <map>
 
@@ -43,6 +44,7 @@ public:
 };
 
 
+// FIXME THREAD
 Cache & Cache::get()
 {
        // Now return the cache
@@ -74,7 +76,7 @@ vector<string> const & Cache::loadableFormats() const
        Formats::const_iterator end   = formats.end();
 
        // The formats natively loadable.
-       vector<string> nformat = loadableImageFormats();
+       vector<string> nformat = frontend::loadableImageFormats();
        
        vector<string>::const_iterator it = nformat.begin();
        for (; it != nformat.end(); ++it) {
@@ -92,11 +94,8 @@ vector<string> const & Cache::loadableFormats() const
                vector<string>::const_iterator fbegin = fmts.begin();
                vector<string>::const_iterator fend = fmts.end();
                for (vector<string>::const_iterator fit = fbegin; fit != fend; ++fit) {
-                       if (fit != fbegin)
-                               LYXERR(Debug::GRAPHICS, ", ");
-                       LYXERR(Debug::GRAPHICS, *fit);
+                       LYXERR(Debug::GRAPHICS, *fit << ',');
                }
-               LYXERR(Debug::GRAPHICS, '\n');
        }
 
        return fmts;