X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText2.cpp;h=ed4b133ff53f4fc34fe994bf16264615979815e0;hb=7470305720d7733a27e9c6e5ef13a0774f5d0f77;hp=2d1ca0ec4ee0dc6f6a57368e0fd611f22ac2b881;hpb=6d97e3993489a23aea79f899f156fd2f6e21cc4d;p=lyx.git diff --git a/src/Text2.cpp b/src/Text2.cpp index 2d1ca0ec4e..ed4b133ff5 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -182,7 +182,11 @@ void Text::setLayout(pit_type start, pit_type end, for (pit_type pit = start; pit != end; ++pit) { Paragraph & par = pars_[pit]; - par.applyLayout(lyxlayout); + // 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().defaultLayout() : lyxlayout); if (lyxlayout.margintype == MARGIN_MANUAL) par.setLabelWidthString(par.expandLabel(lyxlayout, bp)); }