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 14:23:30 UTC 2023
Am Freitag, dem 15.09.2023 um 15:41 +0200 schrieb Thibaut Cuvelier:
> Your patch looks fine to me.
>
> It looks cumbersome, especially if we need to do that several times;
> maybe we could have a method at the inset level, say
> getLocalFontOrDefault(const OutputParams&), to return either
> OutputParams::local_font if it exists or buffer().params() otherwise?
> It would make correct code (much) easier to write.
I agree. Do you want to do that?
> (Wasn't this bug caught at some point by a static analyser? It seems
> to be a too common error in C++ for it to slip through.)
Apparently not.
--
Jürgen
More information about the lyx-devel
mailing list