mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
When handling mouse events, make the undo group a bit larger
notifyCursorLeave can delete empty insets in mathed. Fixes bug #10022.
This commit is contained in:
parent
cd499fdef4
commit
6756637eb5
@ -2243,8 +2243,6 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
|||||||
if (!inset || !cur.result().dispatched())
|
if (!inset || !cur.result().dispatched())
|
||||||
cur.dispatch(cmd);
|
cur.dispatch(cmd);
|
||||||
|
|
||||||
cur.endUndoGroup();
|
|
||||||
|
|
||||||
// Notify left insets
|
// Notify left insets
|
||||||
if (cur != old) {
|
if (cur != old) {
|
||||||
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
|
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
|
||||||
@ -2252,7 +2250,9 @@ void BufferView::mouseEventDispatch(FuncRequest const & cmd0)
|
|||||||
if (badcursor)
|
if (badcursor)
|
||||||
cursor().fixIfBroken();
|
cursor().fixIfBroken();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur.endUndoGroup();
|
||||||
|
|
||||||
// Do we have a selection?
|
// Do we have a selection?
|
||||||
theSelection().haveSelection(cursor().selection());
|
theSelection().haveSelection(cursor().selection());
|
||||||
|
|
||||||
|
@ -160,6 +160,9 @@ What's new
|
|||||||
|
|
||||||
- Erase correctly math multi-cell selections (bug 9747).
|
- Erase correctly math multi-cell selections (bug 9747).
|
||||||
|
|
||||||
|
- Fix warning about Undo when an empty subscript is automatically deleted in mathed
|
||||||
|
(bug 10022).
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
- Fix parsing problems of class and category declaration line in layout files
|
- Fix parsing problems of class and category declaration line in layout files
|
||||||
|
Loading…
Reference in New Issue
Block a user