]> git.lyx.org Git - features.git/commitdiff
disable the del-suppresses-equation-label-at-end feature (not easy to describe, is...
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 12 Oct 2009 15:20:23 +0000 (15:20 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 12 Oct 2009 15:20:23 +0000 (15:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31600 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathHull.cpp

index e3d09f7ea114becdfa7076d1e3d9d351d95020ba..abb35e479f1481719238b2310a4eed0af60140a3 100644 (file)
@@ -1259,7 +1259,8 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_WORD_DELETE_FORWARD:
        case LFUN_CHAR_DELETE_FORWARD:
                if (col(cur.idx()) + 1 == ncols()
-                   && cur.pos() == cur.lastpos()) {
+                   && cur.pos() == cur.lastpos()
+                   && !cur.selection()) {
                        if (!label(row(cur.idx())).empty()) {
                                cur.recordUndoInset();
                                label(row(cur.idx()), docstring());