mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
getPar
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7538 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b54607cb4f
commit
85296c7253
10
src/text2.C
10
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user