]> git.lyx.org Git - features.git/blobdiff - src/insets/inset.C
In order to support multiple LyXView each BufferView needs its own CoordCache. This...
[features.git] / src / insets / inset.C
index fddf3a448b8cf6a993e0003f1a2429bcfbed8788..044ff35d1c236b55896fd1d2fac1bb34b5c9a099 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "inset.h"
 
+#include "BufferView.h"
 #include "debug.h"
 #include "gettext.h"
 #include "lyxtext.h"
@@ -67,8 +68,8 @@ 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);
 }