Created attachment 157915 [details]
file to repro caption undo/redo assert
Assert is: sw/source/core/bastyp/index.cxx:226: virtual SwIndexReg::~SwIndexReg(): Assertion `!m_pFirst && !m_pLast && "There are still indices registered"' failed.
I noticed this in version 7.0 while working on an enhancement to insert captions from the Navigator Tables context menu.
I've also replicated in:
Build ID: 7bfe30c2a1c67961777ff52f20eac30a164e8340
CPU threads: 4; OS: Linux 5.0; UI render: default; VCL: gtk3;
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Attached file contains the steps to repro.
Created attachment 157931 [details]
bt with debug symbols
On pc Debian x86-64 with master sources updated today, I could reproduce this.
This assert is easily seen with patch applied that adds insert caption menu item to Navigator table context menu.