When selecting, get the label color of caption inset right.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35332 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-09-09 13:03:26 +00:00
parent 6d4709d46c
commit 2d278665dc

View File

@ -152,6 +152,7 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
FontInfo tmpfont = pi.base.font; FontInfo tmpfont = pi.base.font;
pi.base.font = pi.base.bv->buffer().params().getFont().fontInfo(); pi.base.font = pi.base.bv->buffer().params().getFont().fontInfo();
ColorChanger dummy(pi.base.font, pi.textColor(pi.base.font.color()).baseColor);
pi.pain.text(x, y, full_label_, pi.base.font); pi.pain.text(x, y, full_label_, pi.base.font);
InsetText::draw(pi, x + labelwidth_, y); InsetText::draw(pi, x + labelwidth_, y);
pi.base.font = tmpfont; pi.base.font = tmpfont;