if (cur.lastpos() == 0 && !cpar.allowEmpty()) {
if (changeDepthAllowed(cur, DEC_DEPTH))
changeDepth(cur, DEC_DEPTH);
- else
- setLayout(cur, tclass.defaultLayoutName());
+ else {
+ docstring const & lay = cur.paragraph().usePlainLayout()
+ ? tclass.plainLayoutName() : tclass.defaultLayoutName();
+ setLayout(cur, lay);
+ }
return;
}
- Disable invalid actions in empty outliner that could trigger a crash
(bug 8885).
+
+- Fix warning when setting layout box when Plain Layout is used (bug 8727).
- Fix bug where searching for next change may leave an empty paragraph
where cursor was (bug 3199).