From 0dec0448649410a5539c22068df175c9d8e345c7 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 13 Sep 2010 01:36:00 +0000 Subject: [PATCH] If system colors are used, paint selected math in Color_selectiontext instead of Color_math. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35355 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 1c3eb53370..c0225c754c 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -433,8 +433,10 @@ void InsetMathHull::draw(PainterInfo & pi, int x, int y) const return; } + ColorCode color = pi.selected && lyxrc.use_system_colors + ? Color_selectiontext : standardColor(); bool const really_change_color = pi.base.font.color() == Color_none; - ColorChanger dummy0(pi.base.font, standardColor(), really_change_color); + ColorChanger dummy0(pi.base.font, color, really_change_color); FontSetChanger dummy1(pi.base, standardFont()); StyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT); -- 2.39.2