LyXText::acceptOrRejectChanges() caused by too aggressive deletion
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16860
a592a061-630c-0410-9148-
cb99ea01b6c8
}
}
- // don't delete anything if this is the ONLY paragraph
- if (pars_.size() == 1)
+ // don't delete anything if this is the only remaining paragraph within the given range
+ // note: LyXText::acceptOrRejectChanges() sets the cursor to 'first' after calling DEPM
+ if (first == last)
continue;
// don't delete empty paragraphs with keepempty set