mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Do not crash when entering math in ct mode with merge dialog open.
Fixes: #7685.
This commit is contained in:
parent
4398a7b02f
commit
90ce24a38d
@ -684,6 +684,10 @@ Change const BufferView::getCurrentChange() const
|
||||
return Change(Change::UNCHANGED);
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,9 @@ What's new
|
||||
|
||||
* USER INTERFACE
|
||||
|
||||
- Fix crash when entering math in change-tracking mode while merge changes
|
||||
dialog is open (bug 7685).
|
||||
|
||||
- Failed instant preview compilation now returns an error. And a red box is
|
||||
drawn around very small preview imagines, so they can be seen (bug 7522).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user