Assertion from command-sequence

Scott Kostyshak skostysh at lyx.org
Fri Feb 18 16:12:07 UTC 2022


To reproduce, open the User Guide (make sure it is editable, i.e., not
read only). Then run the following command sequence:

command-sequence inset-forall Caption char-delete-forward; statistics; undo

I get the following assertion:

CursorSlice.cpp (222): can't compare cursor and anchor in different insets
p: inset: 0x55bfc93571e0 idx: 0 par: 1 pos: 0
q: inset: 0x55bfc9f0d290 idx: 0 par: 0 pos: 0
support/lassert.cpp (52): ASSERTION false VIOLATED IN /home/scott/lyxbuilds/master-master/repo/src/CursorSlice.cpp:225

Can someone reproduce?

Adding "force" after char-delete-forward in the command-sequence causes
there to be no assertion.

I don't think it's important, but just for background information, this
command-sequence came from here:

  https://tex.stackexchange.com/questions/110690/word-count-in-lyx-which-does-not-include-figure-captions/110707?noredirect=1#comment1580098_110707

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220218/5dcf523c/attachment.asc>


More information about the lyx-devel mailing list