]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
hopefully fix tex2lyx linking.
[lyx.git] / src / insets / inset.C
index fddf3a448b8cf6a993e0003f1a2429bcfbed8788..5f0b633794979a5e7b0c6f9fb2c615067bc68579 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "inset.h"
 
+#include "BufferView.h"
 #include "debug.h"
 #include "gettext.h"
 #include "lyxtext.h"
@@ -22,6 +23,9 @@
 #include "metricsinfo.h"
 #include "coordcache.h"
 
+
+namespace lyx {
+
 using std::string;
 
 
@@ -67,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