]> git.lyx.org Git - features.git/commitdiff
fix bug 1598 (crash on cursor up/down in script)
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 12 Feb 2005 15:46:22 +0000 (15:46 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 12 Feb 2005 15:46:22 +0000 (15:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9616 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/ChangeLog
src/mathed/math_nestinset.C

index 838e1711ac4fe3b81e2a75d089b228766110c626..05158ec5eacc5c5b099b46e2646287f561c1a0a2 100644 (file)
@@ -1,4 +1,8 @@
-<<<<<<< ChangeLog
+2005-02-12  Jürgen Spitzmüller  <j.spitzmueller@gmx.de>
+
+       * math_nestinset.C (doDispatch): normalize() cursor after moving up/down
+       (fixes assert and bug 1598).
+
 2005-02-09  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * math_gridinset.[hC]: add facilities for drawing/deleting partition
index e7896596969790176665ceed221cfaf45b7136a9..9c992cfaee74d657584b9e68dd3e6f56bded7c30 100644 (file)
@@ -509,6 +509,8 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
                cur.selHandle(cmd.action == LFUN_UPSEL);
                if (!cur.up())
                        cmd = FuncRequest(LFUN_FINISHED_UP);
+               // fixes bug 1598. Please check!
+               cur.normalize();
                break;
 
        case LFUN_DOWNSEL:
@@ -516,6 +518,8 @@ void MathNestInset::doDispatch(LCursor & cur, FuncRequest & cmd)
                cur.selHandle(cmd.action == LFUN_DOWNSEL);
                if (!cur.down())
                        cmd = FuncRequest(LFUN_FINISHED_DOWN);
+               // fixes bug 1598. Please check!
+               cur.normalize();
                break;
 
        case LFUN_MOUSE_DOUBLE: