]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathEnv.cpp
Get rid of Inset::setPosCache
[lyx.git] / src / mathed / InsetMathEnv.cpp
index a7fb33c69d408ac0e7aa704b879dd3d19698f5dd..41263562cde8d37a90a5d99f9bddd7f6152a4861 100644 (file)
 #include "MathStream.h"
 #include "MathStream.h"
 
+#include "MetricsInfo.h"
+
+#include "support/gettext.h"
+#include "support/lstrings.h"
+
 #include <ostream>
 
+using namespace lyx::support;
 
 namespace lyx {
 
@@ -34,13 +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);
+       metricsMarkers(mi, dim);
 }
 
 
 void InsetMathEnv::draw(PainterInfo & pi, int x, int y) const
 {
+       Changer dummy = pi.base.changeEnsureMath();
        cell(0).draw(pi, x + 1, y);
        drawMarkers(pi, x, y);
 }
@@ -61,7 +69,7 @@ void InsetMathEnv::normalize(NormalStream & os) const
 
 void InsetMathEnv::infoize(odocstream & os) const
 {
-       os << "Env: " << name_;
+       os << bformat(_("Environment: %1$s"), name_);
 }