InsetLine.cpp: fix #6863: use text color also for lines within LyX

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35286 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-09-05 23:27:55 +00:00
parent bbafadcbf3
commit 59d550f894

View File

@ -59,7 +59,11 @@ void InsetLine::metrics(MetricsInfo & mi, Dimension & dim) const
void InsetLine::draw(PainterInfo & pi, int x, int y) const
{
Dimension const dim = dimension(*pi.base.bv);
pi.pain.line(x, y, x + dim.wid, y, Color_foreground,
FontInfo f = pi.base.font;
Color Line_color = f.realColor();
pi.pain.line(x, y, x + dim.wid, y, Line_color,
Painter::line_solid, 1);
}