diff --git a/src/Text2.cpp b/src/Text2.cpp index b990703db8..5ae4e43594 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -1186,7 +1186,11 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur, max(old.pit() - 1, pit_type(0)), min(old.pit() + 1, old.lastpit())); ParagraphList & plist = old.text()->paragraphs(); + 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) + plist[old.pit()].params().startOfAppendix(true); // see #warning above if (cur.depth() >= old.depth()) { diff --git a/src/paragraph_funcs.cpp b/src/paragraph_funcs.cpp index bc2d3257a0..242db98932 100644 --- a/src/paragraph_funcs.cpp +++ b/src/paragraph_funcs.cpp @@ -134,7 +134,10 @@ void breakParagraph(BufferParams const & bparams, } if (!isempty) { + bool const soa = par.params().startOfAppendix(); par.params().clear(); + // do not lose start of appendix marker (bug 4212) + par.params().startOfAppendix(soa); par.layout(bparams.getTextClass().defaultLayout()); } diff --git a/status.15x b/status.15x index 7afde361d8..5ebe93f566 100644 --- a/status.15x +++ b/status.15x @@ -121,6 +121,9 @@ What's new - Fix deletion of pars with leading spaces (bug 3600). +- Fix loss of start-of-appendix information when creating/deleting an + empty paragraph (bug 4212). + - Fix that Revert and Save As were treated as "file is externally modified" (bug 4193)