commit 0fc14060b1eec137ee5e0b543b2001c094a11bfb
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Thu Jan 11 13:09:04 2018 +0100

    Amend 07665d1dca9
    
    We need to disable auto-nesting here.
---
 src/Text3.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index c480857..7a939ed 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);
                }

Reply via email to