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 -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel