]> git.lyx.org Git - lyx.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=5093 .
authorPavel Sanda <sanda@lyx.org>
Fri, 29 Aug 2008 00:31:04 +0000 (00:31 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 29 Aug 2008 00:31:04 +0000 (00:31 +0000)
Patch by Vincent.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26249 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPainter.cpp

index ddc13d738147bbe1f92405c42a65db469bef7977..6b4be590329cb6ed5fc9f9683ca0b88936398553 100644 (file)
@@ -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