]> git.lyx.org Git - lyx.git/commitdiff
Amend 89d9334e03
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Aug 2020 06:35:26 +0000 (08:35 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 15 Aug 2020 06:35:26 +0000 (08:35 +0200)
This needs to be default layout, not plain layout

src/Text2.cpp

index 18fc51892afe0b3538e49dcd40ec26461d422723..ed4b133ff53f4fc34fe994bf16264615979815e0 100644 (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));
        }