]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsCache.cpp
Add 'needauth' option to converters that need explicit user authorization.
[features.git] / src / graphics / GraphicsCache.cpp
index a51f2322fd6b112bcab0f68f33b8c9a0ea62cebd..a3b8ebd3a9e835fbb106ba26586211532f0c057f 100644 (file)
@@ -101,7 +101,7 @@ vector<string> 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));
 }