]> git.lyx.org Git - features.git/commitdiff
When selecting, get the label color of caption inset right.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Sep 2010 13:03:26 +0000 (13:03 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 9 Sep 2010 13:03:26 +0000 (13:03 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35332 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCaption.cpp

index 6e2c03ddfad7cc405207f5340c7da666c61b45b6..72c1b5d73871600ba6bc31bc3d2232c2494de3bc 100644 (file)
@@ -152,6 +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.pain.text(x, y, full_label_, pi.base.font);
        InsetText::draw(pi, x + labelwidth_, y);
        pi.base.font = tmpfont;