]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathMacroTemplate.cpp
Remove unneccessary uses of dynamic_cast from the code.
[lyx.git] / src / mathed / MathMacroTemplate.cpp
index 053b9f1eb37c13ca6a8778644e94ff32b9648975..3eadf6d2ef2242e04a6700b7808b7f611fa946b7 100644 (file)
@@ -591,7 +591,7 @@ void MathMacroTemplate::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void MathMacroTemplate::draw(PainterInfo & pi, int x, int y) const
 {
-       ColorChanger dummy0(pi.base.font, from_ascii("math"));
+       ColorChanger dummy0(pi.base.font, Color_math);
        FontSetChanger dummy1(pi.base, from_ascii("mathnormal"));
        StyleChanger dummy2(pi.base, LM_ST_TEXT);