X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsCache.cpp;h=dbf9cafa5e93d0e14ccbefce7ab646280947cbfa;hb=acba847649f89b63a7762a227a3aac2a12fd6b75;hp=a3b8ebd3a9e835fbb106ba26586211532f0c057f;hpb=244de5d2c10a990828eafdd72283fc87742dc133;p=lyx.git diff --git a/src/graphics/GraphicsCache.cpp b/src/graphics/GraphicsCache.cpp index a3b8ebd3a9..dbf9cafa5e 100644 --- a/src/graphics/GraphicsCache.cpp +++ b/src/graphics/GraphicsCache.cpp @@ -71,12 +71,12 @@ vector 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 nformat = frontend::loadableImageFormats(); - + vector::const_iterator it = nformat.begin(); for (; it != nformat.end(); ++it) { for (Formats::const_iterator fit = begin; fit != end; ++fit) {