From: Jean-Marc Lasgouttes Date: Mon, 6 Sep 2010 14:35:02 +0000 (+0000) Subject: Use correct color for selected paragraph labels X-Git-Tag: 2.0.0~2677 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=eac118ae98f58b3c379a4679d17510c89dcf0d48;p=features.git Use correct color for selected paragraph labels git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35298 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index 0fcf02d929..cb48fb7f1a 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -75,7 +75,11 @@ RowPainter::RowPainter(PainterInfo & pi, FontInfo RowPainter::labelFont() const { - return text_.labelFont(par_); + FontInfo f = text_.labelFont(par_); + // selected text? + if (row_.begin_margin_sel || pi_.selected) + f.setPaintColor(Color_selectiontext); + return f; }