From 2477901f07b8c79e390345dd7861d22ab244884a Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sat, 28 Jun 2008 22:49:40 +0000 Subject: [PATCH] Fix color of math macros git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25403 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/MathMacro.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mathed/MathMacro.cpp b/src/mathed/MathMacro.cpp index eb9bad424d..6089d751c2 100644 --- a/src/mathed/MathMacro.cpp +++ b/src/mathed/MathMacro.cpp @@ -339,12 +339,12 @@ void MathMacro::draw(PainterInfo & pi, int x, int y) const if (displayMode_ == DISPLAY_INIT || displayMode_ == DISPLAY_INTERACTIVE_INIT) { PainterInfo pi2(pi.base.bv, pi.pain); - pi2.base.font.setColor(macro_ ? Color_latex : Color_error); + pi2.base.font.setColor(Color_latex); //pi2.base.style = LM_ST_TEXT; pi2.pain.text(x, y, from_ascii("\\") + name(), pi2.base.font); } else if (displayMode_ == DISPLAY_UNFOLDED) { PainterInfo pi2(pi.base.bv, pi.pain); - pi2.base.font.setColor(macro_ ? Color_latex : Color_error); + pi2.base.font.setColor(Color_latex); //pi2.base.style = LM_ST_TEXT; pi2.pain.text(x, y, from_ascii("\\"), pi2.base.font); x += mathed_string_width(pi2.base.font, from_ascii("\\")) + 1; -- 2.39.2