From b1ac3c3e8381db92febbadbbf42e52d34b067a32 Mon Sep 17 00:00:00 2001 From: Stefan Schimanski Date: Mon, 10 Mar 2008 17:09:02 +0000 Subject: [PATCH] * also forward delete numbering in math hull git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23643 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 47615db07d..98f3f6dd5a 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -1184,10 +1184,17 @@ 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() - && !label(row(cur.idx())).empty()) { - cur.recordUndoInset(); - label(row(cur.idx()), docstring()); + && cur.pos() == cur.lastpos()) { + if (!label(row(cur.idx())).empty()) { + cur.recordUndoInset(); + label(row(cur.idx()), docstring()); + } else if (numbered(row(cur.idx()))) { + cur.recordUndoInset(); + numbered(row(cur.idx()), false); + } else { + InsetMathGrid::doDispatch(cur, cmd); + return; + } } else { InsetMathGrid::doDispatch(cur, cmd); return; -- 2.39.5