From: Pavel Sanda Date: Fri, 29 Aug 2008 00:31:04 +0000 (+0000) Subject: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 . X-Git-Tag: 1.6.10~3584 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8a478b5ab8a728cdd76addaf9edd455557a05a87;p=features.git Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 . Patch by Vincent. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26249 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiPainter.cpp b/src/frontends/qt4/GuiPainter.cpp index ddc13d7381..6b4be59032 100644 --- a/src/frontends/qt4/GuiPainter.cpp +++ b/src/frontends/qt4/GuiPainter.cpp @@ -517,9 +517,9 @@ void GuiPainter::underline(FontInfo const & f, int x, int y, int width) int const height = max((fm.maxDescent() / 4) - 1, 1); if (height < 2) - line(x, y + below, x + width, y + below, f.color()); + line(x, y + below, x + width, y + below, f.realColor()); else - fillRectangle(x, y + below, width, below + height, f.color()); + fillRectangle(x, y + below, width, below + height, f.realColor()); } @@ -534,7 +534,7 @@ void GuiPainter::dashedUnderline(FontInfo const & f, int x, int y, int width) height += below; for (int n = 0; n != height; ++n) - line(x, y + below + n, x + width, y + below + n, f.color(), line_onoffdash); + line(x, y + below + n, x + width, y + below + n, f.realColor(), line_onoffdash); } } // namespace frontend