]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathFontOld.cpp
We only support gcc >= 4.9.
[lyx.git] / src / mathed / InsetMathFontOld.cpp
index 20f3b1d45b1ec73024a20fdc832670b5d23575c5..e3d1f8875fb8305256fea663bf117d6fccb44d04 100644 (file)
@@ -59,9 +59,9 @@ void InsetMathFontOld::metrics(MetricsInfo & mi, Dimension & dim) const
        // When \cal is used in text mode, the font is not changed
        bool really_change_font = fontname != "textcal";
 
-       Changer dummy = mi.base.changeFontSet(fontname, really_change_font);
+       Changer dummy = really_change_font ? mi.base.changeFontSet(fontname)
+               : noChange();
        cell(0).metrics(mi, dim);
-       metricsMarkers(dim);
 }
 
 
@@ -76,9 +76,9 @@ void InsetMathFontOld::draw(PainterInfo & pi, int x, int y) const
        // When \cal is used in text mode, the font is not changed
        bool really_change_font = fontname != "textcal";
 
-       Changer dummy = pi.base.changeFontSet(fontname, really_change_font);
-       cell(0).draw(pi, x + 1, y);
-       drawMarkers(pi, x, y);
+       Changer dummy = really_change_font ? pi.base.changeFontSet(fontname)
+               : noChange();
+       cell(0).draw(pi, x, y);
 }
 
 
@@ -94,7 +94,7 @@ void InsetMathFontOld::drawT(TextPainter & pain, int x, int y) const
 }
 
 
-void InsetMathFontOld::write(WriteStream & os) const
+void InsetMathFontOld::write(TeXMathStream & os) const
 {
        os << "{\\" << key_->name << ' ' << cell(0) << '}';
 }