]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
fix typo that put too many include paths for most people
[lyx.git] / src / graphics / GraphicsCache.C
index 0c86a59413f9edc619ef021d185afe72e9e07e9c..9e37111ec99d72084ceb80357c8c3985693dc8b7 100644 (file)
@@ -50,12 +50,12 @@ GCache::~GCache()
 }
 
 
-void GCache::update(InsetGraphics const & inset)
+void GCache::update(InsetGraphics const & inset, string const & filepath)
 {
        // A subset only of InsetGraphicsParams is needed for display purposes.
        // The GraphicsParams c-tor also interrogates lyxrc to ascertain whether
        // to display or not.
-       GParams params(inset.params());
+       GParams params(inset.params(), filepath);
 
        // Each inset can reference only one file, so check the cache for any
        // graphics files referenced by inset. If the name of this file is
@@ -147,7 +147,7 @@ GCache::find(InsetGraphics const & inset)
                if (it->second->referencedBy(inset))
                        return it;
        }
-       
+
        return cache->end();
 }
 
@@ -161,7 +161,7 @@ GCache::find(InsetGraphics const & inset) const
                if (it->second->referencedBy(inset))
                        return it;
        }
-       
+
        return cache->end();
 }