From: Jean-Marc Lasgouttes Date: Mon, 12 Oct 2009 15:20:23 +0000 (+0000) Subject: disable the del-suppresses-equation-label-at-end feature (not easy to describe, is... X-Git-Tag: 2.0.0~5376 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=60dca30530fdfd05d704780989a047e4490c1769;p=features.git disable the del-suppresses-equation-label-at-end feature (not easy to describe, is it?) when there is a selection git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31600 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index e3d09f7ea1..abb35e479f 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -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());