From: Enrico Forestieri Date: Wed, 28 Apr 2010 11:38:01 +0000 (+0000) Subject: Also account for colors in math macros. X-Git-Tag: 2.0.0~3327 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=beb3fa70e897dd5673bf5d3d912bf4c494ddb287;p=features.git Also account for colors in math macros. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34325 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathMacroTemplate.cpp b/src/mathed/MathMacroTemplate.cpp index 7db428faf3..c98bdbeb71 100644 --- a/src/mathed/MathMacroTemplate.cpp +++ b/src/mathed/MathMacroTemplate.cpp @@ -592,6 +592,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")); FontSetChanger dummy1(pi.base, from_ascii("mathnormal")); StyleChanger dummy2(pi.base, LM_ST_TEXT);