X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsCache.cpp;h=a3b8ebd3a9e835fbb106ba26586211532f0c057f;hb=244de5d2c10a990828eafdd72283fc87742dc133;hp=a51f2322fd6b112bcab0f68f33b8c9a0ea62cebd;hpb=ff0c95aba639ab35a71f5d8ee347ecefbb9e71e1;p=features.git diff --git a/src/graphics/GraphicsCache.cpp b/src/graphics/GraphicsCache.cpp index a51f2322fd..a3b8ebd3a9 100644 --- a/src/graphics/GraphicsCache.cpp +++ b/src/graphics/GraphicsCache.cpp @@ -101,7 +101,7 @@ vector const & Cache::loadableFormats() const } -void Cache::add(FileName const & file) const +void Cache::add(FileName const & file, FileName const & doc_file) const { // Is the file in the cache already? if (inCache(file)) { @@ -110,7 +110,7 @@ void Cache::add(FileName const & file) const return; } - pimpl_->cache[file] = ItemPtr(new CacheItem(file)); + pimpl_->cache[file] = ItemPtr(new CacheItem(file, doc_file)); }