From beb3fa70e897dd5673bf5d3d912bf4c494ddb287 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 28 Apr 2010 11:38:01 +0000 Subject: [PATCH] Also account for colors in math macros. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34325 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacroTemplate.cpp | 1 + 1 file changed, 1 insertion(+) 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);