There was no need to use ColorChanger after all :)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35334 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2010-09-09 13:15:25 +00:00
parent 24fcbd6f0c
commit e54376ebd6

View File

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