git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7538 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-08-14 10:10:19 +00:00
parent b54607cb4f
commit 85296c7253

View File

@ -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;
}
}