mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Revert "Fix crash"
A better fix is forthcoming.
This reverts commit 177ad3d4a4
.
This commit is contained in:
parent
177ad3d4a4
commit
2ea4b1dcdf
@ -1655,7 +1655,7 @@ void GuiView::structureChanged()
|
||||
// This is called from the Buffer, which has no way to ensure that cursors
|
||||
// in BufferView remain valid.
|
||||
if (documentBufferView())
|
||||
documentBufferView()->cursor().fixIfBroken();
|
||||
documentBufferView()->cursor().sanitize();
|
||||
// FIXME: This is slightly expensive, though less than the tocBackend update
|
||||
// (#9880). This also resets the view in the Toc Widget (#6675).
|
||||
d.toc_models_.reset(documentBufferView());
|
||||
|
Loading…
Reference in New Issue
Block a user