mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +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();
|
size_t n = slices_.size();
|
||||||
for (; i != n; ++i) {
|
for (; i != n; ++i) {
|
||||||
CursorSlice & cs = slices_[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
|
// the whole slice is wrong, chop off this as well
|
||||||
--i;
|
--i;
|
||||||
LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");
|
LYXERR(Debug::DEBUG, "fixIfBroken(): inset changed");
|
||||||
|
Loading…
Reference in New Issue
Block a user