mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-27 10:37:53 +00:00
Do not crash when entering math in ct mode with merge dialog open.
Fixes: #7685.
This commit is contained in:
parent
da196ed5b2
commit
9b6eea6ca5
@ -686,6 +686,10 @@ Change const BufferView::getCurrentChange() const
|
|||||||
return Change(Change::UNCHANGED);
|
return Change(Change::UNCHANGED);
|
||||||
|
|
||||||
DocIterator dit = d->cursor_.selectionBegin();
|
DocIterator dit = d->cursor_.selectionBegin();
|
||||||
|
// The selected content might have been changed (see #7685)
|
||||||
|
while (dit.inMathed())
|
||||||
|
// Find enclosing text cursor
|
||||||
|
dit.pop_back();
|
||||||
return dit.paragraph().lookupChange(dit.pos());
|
return dit.paragraph().lookupChange(dit.pos());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user