On 07/18/2016 02:43 PM, Jean-Marc Lasgouttes wrote:
> 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.

Seems reasonable.

I do have some general questions about the way labelfont_ is set in
InsetArgument.
It seems to get reset (along with a lot of other private variables)
every time we go
through updateBuffer. It really only needs to be reset when the
DocumentClass
changes, since all of these really depend upon the layout. I guess it
also needs to
be reset if the inset is copied, since passthru_, e.g., depends upon the
containing
paragraph. So I'm thinking that maybe if I cached a pointer to the
DocumentClass,
and also the value of *this*, I could check those each time through and
see if they
had changed. If not, do nothing. If so, redo everything.

Richard

Reply via email to