From: Enrico Forestieri Date: Sun, 7 Jun 2015 21:26:57 +0000 (+0200) Subject: Fix bug #9602. X-Git-Tag: 2.2.0alpha1~555 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6bd9f8856f9d83e0ef1fb6b055ddc46176e954f0;p=features.git Fix bug #9602. The removed code was introduced at [c668ebf6/lyxgit] to assure that an inset separator in the last position of a paragraph was getting removed when hitting backspace with the cursor at the beginning of the next paragraph. Apparently, it is not needed anymore and can be removed. This avoids the reported assertion. --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 3a93ed23d5..9bd95cc05a 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1071,17 +1071,11 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_CHAR_DELETE_BACKWARD: if (!cur.selection()) { if (bv->getIntl().getTransManager().backspace()) { - bool par_boundary = cur.pos() == 0; // Par boundary, full-screen update - if (par_boundary) + if (cur.pos() == 0) singleParUpdate = false; needsUpdate |= backspace(cur); cur.resetAnchor(); - if (par_boundary && cur.pos() > 0 - && cur.paragraph().isEnvSeparator(cur.pos() - 1)) { - needsUpdate |= backspace(cur); - cur.resetAnchor(); - } } } else { cutSelection(cur, true, false);