From: Enrico Forestieri Date: Mon, 13 Sep 2010 01:36:00 +0000 (+0000) Subject: If system colors are used, paint selected math in Color_selectiontext X-Git-Tag: 2.0.0~2631 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0dec0448649410a5539c22068df175c9d8e345c7;p=features.git 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 --- 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);