From 85296c725389ac5415606ad3a157628cbab226fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 14 Aug 2003 10:10:19 +0000 Subject: [PATCH] getPar git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7538 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text2.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/text2.C b/src/text2.C index 1bf39dfadd..95cad09c2b 100644 --- a/src/text2.C +++ b/src/text2.C @@ -263,13 +263,13 @@ void LyXText::removeRow(RowList::iterator rit) // remove all following rows of the paragraph of the specified row. void LyXText::removeParagraph(RowList::iterator rit) { - ParagraphList::iterator tmppit = getPar(rit); - ++rit; + ParagraphList::iterator pit = getPar(rit); + RowList::iterator end = endRow(pit); - while (rit != rows().end() && getPar(rit) == tmppit) { - RowList::iterator tmprit = boost::next(rit); + for (++rit; rit != end; ) { + RowList::iterator rit2 = boost::next(rit); removeRow(rit); - rit = tmprit; + rit = rit2; } } -- 2.39.2