* src/Text2.cpp (deleteEmptyParagraphMechanism): do not reset the

appendix marker if the deleted paragraph was the last one (bug 4352)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21639 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-11-16 13:33:21 +00:00
parent 3ea8ddf7f9
commit 8b1cc5bfef

View File

@ -820,7 +820,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
bool const soa = oldpar.params().startOfAppendix(); bool const soa = oldpar.params().startOfAppendix();
plist.erase(boost::next(plist.begin(), old.pit())); plist.erase(boost::next(plist.begin(), old.pit()));
// do not lose start of appendix marker (bug 4212) // do not lose start of appendix marker (bug 4212)
if (soa) if (soa && old.pit() < plist.size())
plist[old.pit()].params().startOfAppendix(true); plist[old.pit()].params().startOfAppendix(true);
// see #warning (FIXME?) above // see #warning (FIXME?) above