mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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
This commit is contained in:
parent
0668df3828
commit
1b47d2e5e2
@ -297,7 +297,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.recordUndoSelection();
|
cur.recordUndoSelection();
|
||||||
pit_type const pit_end = cur.selEnd().pit();
|
pit_type const pit_end = cur.selEnd().pit();
|
||||||
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
|
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
|
||||||
LASSERT(pit < paragraphs().size(), /**/);
|
|
||||||
paragraphs()[pit].insertChar(0, '\t',
|
paragraphs()[pit].insertChar(0, '\t',
|
||||||
buffer().params().trackChanges);
|
buffer().params().trackChanges);
|
||||||
// Update the selection pos to make sure the selection does not
|
// Update the selection pos to make sure the selection does not
|
||||||
@ -323,7 +322,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cur.recordUndoSelection();
|
cur.recordUndoSelection();
|
||||||
pit_type const pit_end = cur.selEnd().pit();
|
pit_type const pit_end = cur.selEnd().pit();
|
||||||
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
|
for (pit_type pit = cur.selBegin().pit(); pit <= pit_end; pit++) {
|
||||||
LASSERT( pit < paragraphs().size(), /**/ );
|
|
||||||
Paragraph & par = paragraphs()[pit];
|
Paragraph & par = paragraphs()[pit];
|
||||||
if (par.getChar(0) == '\t') {
|
if (par.getChar(0) == '\t') {
|
||||||
if (cur.pit() == pit)
|
if (cur.pit() == pit)
|
||||||
@ -348,8 +346,6 @@ void InsetListings::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
} else {
|
} else {
|
||||||
// If there is no selection, try to remove a tab or some spaces
|
// If there is no selection, try to remove a tab or some spaces
|
||||||
// before the position of the cursor.
|
// before the position of the cursor.
|
||||||
LASSERT(cur.pit() >= 0 && cur.pit() < paragraphs().size(), /**/);
|
|
||||||
|
|
||||||
Paragraph & par = paragraphs()[cur.pit()];
|
Paragraph & par = paragraphs()[cur.pit()];
|
||||||
pos_type const pos = cur.pos();
|
pos_type const pos = cur.pos();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user