]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
Fix dialog handling of Insert Plain Text
[lyx.git] / src / Text2.cpp
index 2a0249a523fdd0d44063613e95b453a90b053310..4aab7d585fa80c536ba4f00750c04744feaa1eb5 100644 (file)
@@ -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() < pit_type(plist.size()))
                        plist[old.pit()].params().startOfAppendix(true);
 
                // see #warning (FIXME?) above