SIGSEGV on current master when saving with cursor in subscript
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Tue Apr 16 10:08:02 UTC 2024
Le 13/04/2024 à 08:10, Jürgen Spitzmüller a écrit :
> Note that this is not specific to this particularly inset. I can
> reproduce with any other (text) inset, e.g.:
>
> 1. Start a new document.
> 2. Insert a Note inset
> 3. Save the (new) file (cursor still being in the Note inset).
>
> => Kaboom.
What happens is that Save As... reloads the buffer (for a reason that is
not very clear at this point), which means that all cursors hold bad
pointers. It seems that, before the biginset branch removed a few full
metrics updates, we could get away with it (presumably some code
somewhere fixes the cursors). Now, we have to fix it at the right place.
I propose the following patch. Can you check that it works?
JMarc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sanitize-cursors-after-a-buffer-has-been-reloaded.patch
Type: text/x-patch
Size: 3577 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240416/5fd752cc/attachment-0001.bin>
More information about the lyx-devel
mailing list