From 60dca30530fdfd05d704780989a047e4490c1769 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 12 Oct 2009 15:20:23 +0000 Subject: [PATCH] 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 --- src/mathed/InsetMathHull.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); -- 2.39.2