From: Stefan Schimanski Date: Fri, 8 Feb 2008 16:19:58 +0000 (+0000) Subject: * clear selection when mutating a math inset into an eqnarray. This fixes #4452. X-Git-Tag: 1.6.10~6379 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=3a5fcb9158fd8e88a16a24c39ff99778b76fa7f3;p=features.git * clear selection when mutating a math inset into an eqnarray. This fixes #4452. 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 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index c1b99349de..d6dcdc8ed7 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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; }