]> git.lyx.org Git - features.git/commitdiff
Remove assertion that are already checked in debug mode.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 1 Oct 2008 08:15:02 +0000 (08:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 1 Oct 2008 08:15:02 +0000 (08:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26667 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetListings.cpp

index 5cad34c728eec2882ab1545aadd6ece0ccb65c97..31dbe5bdf07d2774c06c505097f8c968bbf6fb79 100644 (file)
@@ -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();