]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathPhantom.cpp
Improve the list of equations
[lyx.git] / src / mathed / InsetMathPhantom.cpp
index 6d0b88df78bee5ea1582631e8095bf04b65cecfb..1ae8eee07b65b2632a9d42526344717cbdfae704 100644 (file)
@@ -38,6 +38,7 @@ Inset * InsetMathPhantom::clone() const
 
 void InsetMathPhantom::metrics(MetricsInfo & mi, Dimension & dim) const
 {
+       Changer dummy = mi.base.changeEnsureMath();
        cell(0).metrics(mi, dim);
        metricsMarkers(mi, dim);
 }
@@ -45,6 +46,7 @@ void InsetMathPhantom::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetMathPhantom::draw(PainterInfo & pi, int x, int y) const
 {
+       Changer dummy = pi.base.changeEnsureMath();
        static int const arrow_size = 4;
 
        // We first draw the text and then an arrow