From 8b1cc5bfef6b3b4eca770d7fdf7bee86b81098c8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 16 Nov 2007 13:33:21 +0000 Subject: [PATCH] * 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 --- src/Text2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Text2.cpp b/src/Text2.cpp index 2a0249a523..8abecd9208 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -820,7 +820,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur, bool const soa = oldpar.params().startOfAppendix(); plist.erase(boost::next(plist.begin(), old.pit())); // do not lose start of appendix marker (bug 4212) - if (soa) + if (soa && old.pit() < plist.size()) plist[old.pit()].params().startOfAppendix(true); // see #warning (FIXME?) above -- 2.39.2