Bug report: SIGSEGV when copying cross-reference from "description" layout on LyX 2.4.0 beta 5

Jürgen Spitzmüller jspitzm at gmail.com
Fri Sep 15 09:36:16 UTC 2023


Am Freitag, dem 15.09.2023 um 10:45 +0200 schrieb Léo de Souza:
> 1. Create new document: File > New
> 2. Insert label: Insert > Label...
> 3. On a new line, switch layout to "Labeling" or "Description"
> 4. Insert cross-reference: Insert > Cross-Reference...
> 5. Try copying this cross-reference
> 
> Expected result (LyX 2.3.6): The cross-reference is copied to the
> clipboard.
> 
> Actual result (LyX 2.4.0 beta 5): LyX crashes with the message
> "SIGSEGV signal caught!"


Nullpointer issue due to local_font being non-defined in
InsetRef::xhtml().

The attached patch fixes this particular case, but there are many
similar uses in insets's xhtml methods which would need to be audited.

Thibaut, Riki?

-- 
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x.diff
Type: text/x-patch
Size: 794 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230915/ae0706c9/attachment-0001.bin>


More information about the lyx-devel mailing list