From: Juergen Spitzmueller Date: Thu, 11 Jan 2018 12:09:04 +0000 (+0100) Subject: Amend 07665d1dca9 X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4041 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0fc14060b1eec137ee5e0b543b2001c094a11bfb;p=features.git Amend 07665d1dca9 We need to disable auto-nesting here. --- 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); }