mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 09:32:20 +00:00
Fix bug #6264: Broken undo of removed script in mathed when both scripts are present.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@31559 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
25a24f3fde
commit
a08af1f602
@ -675,11 +675,13 @@ bool InsetMathScript::notifyCursorLeaves(Cursor const & old, Cursor & cur)
|
|||||||
if (nargs() > 2 && (!cell(1).empty() || !cell(2).empty())) {
|
if (nargs() > 2 && (!cell(1).empty() || !cell(2).empty())) {
|
||||||
if (cell(2).empty()) {
|
if (cell(2).empty()) {
|
||||||
// must be a subscript...
|
// must be a subscript...
|
||||||
|
old.recordUndoInset();
|
||||||
removeScript(false);
|
removeScript(false);
|
||||||
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
||||||
return true;
|
return true;
|
||||||
} else if (cell(1).empty()) {
|
} else if (cell(1).empty()) {
|
||||||
// must be a superscript...
|
// must be a superscript...
|
||||||
|
old.recordUndoInset();
|
||||||
removeScript(true);
|
removeScript(true);
|
||||||
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
cur.updateFlags(cur.disp_.update() | Update::SinglePar);
|
||||||
return true;
|
return true;
|
||||||
|
@ -175,6 +175,9 @@ What's new
|
|||||||
|
|
||||||
- Fix the location of context menus requested by the menu key (bug 6108).
|
- Fix the location of context menus requested by the menu key (bug 6108).
|
||||||
|
|
||||||
|
- Fix undo of removed script in mathed when both super- and subscript
|
||||||
|
are present (bug 6264).
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user