[LyX/master] Assure correct spacing of colored items in mathed

Scott Kostyshak skostysh at lyx.org
Mon Feb 8 05:50:15 UTC 2021

On Sun, Feb 07, 2021 at 09:37:57AM +0100, Enrico Forestieri wrote:
> On Sat, Feb 06, 2021 at 11:06:41PM -0500, Scott Kostyshak wrote:
> > I see an assertion on master that I think started happening with this commit.
> > 
> > Here's the assertion:
> > ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master/repo/src/mathed/MathClass.cpp:59
> > 
> > The assertion happens when I just open the attached file.
> > 
> > Can you reproduce?
> Yes, I can. Thanks for the report. Attached you find two patches.
> The first is the right one, IMHO, but JMarc should tell whether the
> "LATEST(false);" has to remain, instead (note that the assertion only
> triggers in devel mode and is ignored in release mode).

Tested and works well. Thanks for the quick potential fix.


> The second one is to be used if the first one cannot be applied. This
> patch simply assigns the string "mathord" that would be assigned without
> the assert in class_to_string().
> -- 
> Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210208/0f940084/attachment.asc>

More information about the lyx-devel mailing list