From: Juergen Spitzmueller Date: Sat, 15 Aug 2020 06:35:26 +0000 (+0200) Subject: Amend 89d9334e03 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~391 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ea122aa8fa2381cac9858fc9dfe71062acb7218e;p=lyx.git Amend 89d9334e03 This needs to be default layout, not plain layout --- diff --git a/src/Text2.cpp b/src/Text2.cpp index 18fc51892a..ed4b133ff5 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -182,10 +182,11 @@ void Text::setLayout(pit_type start, pit_type end, for (pit_type pit = start; pit != end; ++pit) { Paragraph & par = pars_[pit]; - // Is this a separating paragraph? + // Is this a separating paragraph? If so, + // this needs to be standard layout bool const is_separator = par.size() == 1 && par.isEnvSeparator(0); - par.applyLayout(is_separator ? bp.documentClass().plainLayout() : lyxlayout); + par.applyLayout(is_separator ? bp.documentClass().defaultLayout() : lyxlayout); if (lyxlayout.margintype == MARGIN_MANUAL) par.setLabelWidthString(par.expandLabel(lyxlayout, bp)); }