http://bugzilla.lyx.org/show_bug.cgi?id=3862
Attached. Abdel.
Index: buffer_funcs.cpp =================================================================== --- buffer_funcs.cpp (revision 19003) +++ buffer_funcs.cpp (working copy) @@ -474,7 +474,13 @@ Layout_ptr const & layout = par.layout(); Counters & counters = textclass.counters(); - if (it.pit() == 0) { + Buffer const * mbuf = buf.getMasterBuffer(); + bool const child_in_appendix = &buf != mbuf + && mbuf->text().paragraphs().back().params().appendix(); + + if (child_in_appendix) + par.params().appendix(true); + else if (it.pit() == 0) { par.params().appendix(par.params().startOfAppendix()); } else { par.params().appendix(it.plist()[it.pit() - 1].params().appendix());