]> git.lyx.org Git - features.git/commitdiff
Realize inset argument label font before using it
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Jul 2016 20:29:57 +0000 (22:29 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Jul 2016 20:29:57 +0000 (22:29 +0200)
src/insets/InsetCollapsable.cpp

index 520d902dcbbc492530fae22d629610049435887a..668a91896ac1704c97cfb480de74d614cef1f626 100644 (file)
@@ -244,6 +244,7 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
 
                FontInfo labelfont = getLabelfont();
                labelfont.setColor(labelColor());
+               labelfont.realize(pi.base.font);
                pi.pain.buttonText(x, y, buttonLabel(bv), labelfont,
                                   view_[&bv].mouse_hover_);
                // Draw the change tracking cue on the label, unless RowPainter already