]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
* BufferParams:
[lyx.git] / src / insets / inset.C
index 7d846f23839f450ea6ebbb7ffe05d1b121ccdfa2..5f0b633794979a5e7b0c6f9fb2c615067bc68579 100644 (file)
@@ -14,7 +14,6 @@
 #include <config.h>
 
 #include "inset.h"
-#include "updatableinset.h"
 
 #include "BufferView.h"
 #include "debug.h"
@@ -24,6 +23,9 @@
 #include "metricsinfo.h"
 #include "coordcache.h"
 
+
+namespace lyx {
+
 using std::string;
 
 
@@ -69,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