]> git.lyx.org Git - features.git/commitdiff
* clear selection when mutating a math inset into an eqnarray. This fixes #4452.
authorStefan Schimanski <sts@lyx.org>
Fri, 8 Feb 2008 16:19:58 +0000 (16:19 +0000)
committerStefan Schimanski <sts@lyx.org>
Fri, 8 Feb 2008 16:19:58 +0000 (16:19 +0000)
There could be some more clever code to keep the selection. But IMO it's ok like this.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22864 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index c1b99349de8fc43fba7788b129fff325f8305b89..d6dcdc8ed719a6dbcba0d72727488cd8bc598f4c 100644 (file)
@@ -1136,6 +1136,10 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
                }
                if (cur.pos() > cur.lastpos())
                        cur.pos() = cur.lastpos();
+               
+               // FIXME: find some more clever handling of the selection,
+               // i.e. preserve it.
+               cur.clearSelection();
                //cur.dispatched(FINISHED);
                break;
        }