From 0fc14060b1eec137ee5e0b543b2001c094a11bfb Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 11 Jan 2018 13:09:04 +0100 Subject: [PATCH] Amend 07665d1dca9 We need to disable auto-nesting here. --- src/Text3.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Text3.cpp b/src/Text3.cpp index c480857eb2..7a939eda51 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -2582,7 +2582,8 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) && pars_[pit - 1].layout() == pars_[pit].layout()) { lyx::dispatch(FuncRequest(LFUN_PARAGRAPH_BREAK)); DocumentClass const & tc = bv->buffer().params().documentClass(); - lyx::dispatch(FuncRequest(LFUN_LAYOUT, tc.plainLayout().name())); + lyx::dispatch(FuncRequest(LFUN_LAYOUT, from_ascii("\"") + tc.plainLayout().name() + + from_ascii("\" ignoreautonests"))); lyx::dispatch(FuncRequest(LFUN_SEPARATOR_INSERT, "plain")); setCursor(cur, pit + 1, 0); } -- 2.39.2