Le 18/07/2016 18:53, Richard Heck a écrit :
On 07/18/2016 06:26 AM, Andrew Parsloe wrote:
I've attached a MWE in which a flex inset is defined in a local layout
(and validates). However, as soon as I try to insert the argument LyX
generates the assertion in the attached png. It seems to be the use of
Color in the LabelFont specification in Argument 1 that is the
problem. Family, Series, etc. don't cause problems, nor does Font.
Confirmed. And I do get the same assertion using "Series bold" instead
of anything about color.
I would propose this.
JMarc
diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp
index 520d902..668a918 100644
--- a/src/insets/InsetCollapsable.cpp
+++ b/src/insets/InsetCollapsable.cpp
@@ -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