http://bugzilla.lyx.org/show_bug.cgi?id=4212
This patch consists of two different parts fixing the two different
problems described in this bug. These bugs have been with us forever,
AFAICS, but the fixes are trivial.
I am going to commit to trunk and I propose to apply to branch too.
JMarc
svndiff src/Text2.cpp src/paragraph_funcs.cpp
Index: src/Text2.cpp
===================================================================
--- src/Text2.cpp (révision 20120)
+++ src/Text2.cpp (copie de travail)
@@ -813,7 +813,9 @@ bool Text::deleteEmptyParagraphMechanism
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()));
+ boost::next(plist.begin(), old.pit())->params().startOfAppendix(soa);
// see #warning (FIXME?) above
if (cur.depth() >= old.depth()) {
Index: src/paragraph_funcs.cpp
===================================================================
--- src/paragraph_funcs.cpp (révision 20120)
+++ src/paragraph_funcs.cpp (copie de travail)
@@ -134,6 +134,7 @@ void breakParagraph(BufferParams const &
}
if (!isempty) {
+ tmp->params().startOfAppendix(par.params().startOfAppendix());
par.params().clear();
par.layout(bparams.getTextClass().defaultLayout());
}