This needs to be default layout, not plain layout

(cherry picked from commit ea122aa8fa)
This commit is contained in:
Juergen Spitzmueller 2020-08-15 08:35:26 +02:00
parent 028593b979
commit 65c8e70588
2 changed files with 5 additions and 2 deletions

View File

@ -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));
}

View File

@ -88,6 +88,8 @@ What's new
- Do not allow editing of math package list in Document > Settings > Math Options,
thus preventing a crash (bug 11931).
- Maintain standard layout for separating paragraphs when switching layouts (bug 11936).
* INTERNALS