Assertion in GuiFontLoader when doing undo on master after "replace all"
Scott Kostyshak
skostysh at lyx.org
Thu Nov 26 17:04:23 UTC 2020
On Thu, Nov 26, 2020 at 10:54:38AM +0100, Jean-Marc Lasgouttes wrote:
> Le 25/11/2020 à 15:40, Scott Kostyshak a écrit :
> > While experimenting with undo/redo after a "replace all" with Advanced
> > find, I received an assertion. I think the cursor was in the "Find" work
> > area. Unfortunately, I cannot reproduce. The assertion and terminal (not
> > GDB) backtrace is attached.
> >
> > Scott
> >
> >
>
> The only assertion I see related to GuiFontLOader::metrics is this:
>
> // Get font info (font + metrics) for the given LyX font.
> // if not cached, create it.
> GuiFontInfo & fontinfo(FontInfo const & f)
> {
> bool const fontIsRealized =
> (f.family() < NUM_FAMILIES) &&
> (f.series() < NUM_SERIES) &&
> (f.realShape() < NUM_SHAPE) &&
> (f.size() < NUM_SIZE);
> if (!fontIsRealized) {
> // We can reset the font to something sensible in release mode.
> LATTEST(false);
> LYXERR0("Unrealized font!");
>
> It seems that an unrealized font is used somewhere
Yes, the line mentioned in the assertion points to that assertion.
Thanks for fixing the order.
> (we would be sure if the
> LYXERR0 was before the assertion).
I can't actually say with confidence I would have been smart enough to
copy that info from the terminal. Hopefully I would have been :)
I've tried a few more times to reproduce but cannot.
Scott
-------------- 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/20201126/8ed7d8c8/attachment.asc>
More information about the lyx-devel
mailing list