mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
Make fixIfBroken() more robust
Chop slice when its inset is not editable.
Fixes bug #10667.
(cherry picked from commit 522516d99e
)
This commit is contained in:
parent
f7aabdd9fa
commit
1c07c0dc38
@ -535,7 +535,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");
|
||||
|
@ -79,6 +79,8 @@ What's new
|
||||
|
||||
- Fix potential crash when cursor enters an inset (bug 10691).
|
||||
|
||||
- Fix random crash when dissolving inset (bug 10667).
|
||||
|
||||
- Avoid a case of stuck cursor after entering an inset (bug 10630).
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user