]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.cpp
Kill macro mode when using LFUN_ESCAPE
[lyx.git] / src / mathed / InsetMathEnv.cpp
index cc613fd44018eb4165f877e304b282e1f22fe156..2eea5ac4185815f979f39c25b9a119b8f048b532 100644 (file)
@@ -16,6 +16,8 @@
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "MetricsInfo.h"
+
 #include "support/gettext.h"
 #include "support/lstrings.h"
 
@@ -38,15 +40,15 @@ Inset * InsetMathEnv::clone() const
 
 void InsetMathEnv::metrics(MetricsInfo & mi, Dimension & dim) const
 {
+       Changer dummy = mi.base.changeEnsureMath();
        cell(0).metrics(mi, dim);
-       metricsMarkers(dim);
 }
 
 
 void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const
 {
-       cell(0).draw(pi, x + 1, y);
-       drawMarkers(pi, x, y);
+       Changer dummy = pi.base.changeEnsureMath();
+       cell(0).draw(pi, x, y);
 }