mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Make fixIfBroken() more robust
Chop slice when its inset is not editable. Fixes bug #10667.
This commit is contained in:
parent
9c92494e1a
commit
522516d99e
@ -562,7 +562,7 @@ bool DocIterator::fixIfBroken()
|
||||
size_t n = slices_.size();
|
||||
for (; i != n; ++i) {
|
||||
CursorSlice & cs = slices_[i];
|
||||
if (&cs.inset() != inset) {
|
||||
if (&cs.inset() != inset || !cs.inset().editable()) {
|
||||
// the whole slice is wrong, chop off this as well
|
||||
--i;
|
||||
LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");
|
||||
|
Loading…
Reference in New Issue
Block a user