From eac118ae98f58b3c379a4679d17510c89dcf0d48 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 6 Sep 2010 14:35:02 +0000 Subject: [PATCH] Use correct color for selected paragraph labels git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35298 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }