]> git.lyx.org Git - features.git/commitdiff
Amend 07665d1dca9
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 11 Jan 2018 12:09:04 +0000 (13:09 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 11 Jan 2018 12:09:04 +0000 (13:09 +0100)
We need to disable auto-nesting here.

src/Text3.cpp

index c480857eb27be19530f6c2a9d03f97f542b4283c..7a939eda51f23559663c8cb397685cafff99ef6b 100644 (file)
@@ -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);
                }