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

2023-09-30 Thread Jürgen Spitzmüller
Am Freitag, dem 15.09.2023 um 16:23 +0200 schrieb Jürgen Spitzmüller: > 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

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

2023-09-15 Thread Jean-Marc Lasgouttes
Le 15/09/2023 à 16:23, Jürgen Spitzmüller a écrit : (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. Coverity scan only tags this if in some other places of the code there is a test for a null

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

2023-09-15 Thread Jürgen Spitzmüller
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 >

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

2023-09-15 Thread Thibaut Cuvelier
On Fri, 15 Sept 2023 at 11:36, Jürgen Spitzmüller wrote: > 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

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

2023-09-15 Thread Jürgen Spitzmüller
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

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

2023-09-15 Thread Anders Ekberg
Can repeat on Mac Ventura 13.5.2. /Anders > On 15 Sep 2023, at 10:45, Léo de Souza wrote: > > Hello, > > I would like to report that LyX crashes with SIGSEGV when copying a cross > reference from a "labeled list" or "description" layout on LyX 2.4.0 beta 5. > > Environment: > > I compiled

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

2023-09-15 Thread Léo de Souza
Hello, I would like to report that LyX crashes with SIGSEGV when copying a cross reference from a "labeled list" or "description" layout on LyX 2.4.0 beta 5. Environment: I compiled LyX 2.4.0 beta 5 on Ubuntu 22.04 with Qt6 enabled and my Tex Live install is up to date. Steps to reproduce: