From: Abdelrazak Younes Date: Wed, 1 Oct 2008 08:15:02 +0000 (+0000) Subject: Remove assertion that are already checked in debug mode. X-Git-Tag: 1.6.10~3227 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1b47d2e5e262f7dfb1d6d4def6c96cdb8dca44d5;p=features.git Remove assertion that are already checked in debug mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26667 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 5cad34c728..31dbe5bdf0 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -297,7 +297,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd) cur.recordUndoSelection(); pit_type const pit_end = cur.selEnd().pit(); for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) { - LASSERT(pit < paragraphs().size(), /**/); paragraphs()[pit].insertChar(0, '\t', buffer().params().trackChanges); // Update the selection pos to make sure the selection does not @@ -323,7 +322,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd) cur.recordUndoSelection(); pit_type const pit_end = cur.selEnd().pit(); for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) { - LASSERT( pit < paragraphs().size(), /**/ ); Paragraph & par = paragraphs()[pit]; if (par.getChar(0) == '\t') { if (cur.pit() == pit) @@ -348,8 +346,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd) } else { // If there is no selection, try to remove a tab or some spaces // before the position of the cursor. - LASSERT(cur.pit() >= 0 && cur.pit() < paragraphs().size(), /**/); - Paragraph & par = paragraphs()[cur.pit()]; pos_type const pos = cur.pos();