]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
* src/LyXAction.C: mark goto-clear-bookmark as working without buffer
[lyx.git] / src / insets / inset.C
index 38640a11f9fa9822426b1bf5027aed17c873e3dd..5f0b633794979a5e7b0c6f9fb2c615067bc68579 100644 (file)
@@ -23,6 +23,9 @@
 #include "metricsinfo.h"
 #include "coordcache.h"
 
+
+namespace lyx {
+
 using std::string;
 
 
@@ -68,8 +71,11 @@ int InsetOld::width() const
 }
 
 
-void InsetOld::setPosCache(PainterInfo const &, int x, int y) const
+void InsetOld::setPosCache(PainterInfo const & pi, int x, int y) const
 {
        //lyxerr << "InsetOld:: position cache to " << x << " " << y << std::endl;
-       theCoords.insets().add(this, x, y);
+       pi.base.bv->coordCache().insets().add(this, x, y);
 }
+
+
+} // namespace lyx