]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.cpp
Catch another exception
[lyx.git] / src / graphics / GraphicsCache.cpp
index a3b8ebd3a9e835fbb106ba26586211532f0c057f..c915938884c6b80b6545b9a7b1a6989fac2d56da 100644 (file)
@@ -71,8 +71,8 @@ vector<string> const & Cache::loadableFormats() const
                return fmts;
 
        // The formats recognised by LyX
-       Formats::const_iterator begin = formats.begin();
-       Formats::const_iterator end   = formats.end();
+       Formats::const_iterator begin = theFormats().begin();
+       Formats::const_iterator end   = theFormats().end();
 
        // The formats natively loadable.
        vector<string> nformat = frontend::loadableImageFormats();