]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDim.C
make it compile again (hopefully)
[lyx.git] / src / mathed / InsetMathDim.C
index d267c2bca40732c4b739b9dc3d50b34b1843cb42..1b0eecb601248d94be08b3f12fa0ec0e89d1805f 100644 (file)
 #include <config.h>
 
 #include "InsetMathDim.h"
+
+#include "BufferView.h"
 #include "coordcache.h"
 #include "debug.h"
+#include "metricsinfo.h"
 
 
 InsetMathDim::InsetMathDim()
@@ -37,8 +40,8 @@ int InsetMathDim::width() const
 }
 
 
-void InsetMathDim::setPosCache(PainterInfo const &, int x, int y) const
+void InsetMathDim::setPosCache(PainterInfo const & pi, int x, int y) const
 {
        //lyxerr << "InsetMathDim: cache to " << x << " " << y << std::endl;
-       theCoords.insets().add(this, x, y);
+       pi.base.bv->coordCache().insets().add(this, x, y);
 }