]> git.lyx.org Git - lyx.git/blobdiff - src/Layout.cpp
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Layout.cpp
index ff123dc32ef74c84eb76b00956dfdec4b67026c3..79a2e7bcc76e10025dcbbf69c87ae4fc9d59579d 100644 (file)
@@ -13,8 +13,6 @@
 #include <config.h>
 
 #include "Layout.h"
-#include "FontInfo.h"
-#include "Language.h"
 #include "Lexer.h"
 #include "output_xhtml.h"
 #include "TextClass.h"
@@ -23,7 +21,6 @@
 #include "support/docstream.h"
 #include "support/lassert.h"
 #include "support/lstrings.h"
-#include "support/Messages.h"
 #include "support/textutils.h"
 
 
@@ -1193,6 +1190,10 @@ void Layout::readArgument(Lexer & lex, bool validating)
                        latexargs_));
        latexarg & arg = lam[id];
 
+       if (listpreamble)
+               // list preamble has no delimiters by default
+               arg.nodelims = true;
+
        bool error = false;
        bool finished = false;
        while (!finished && lex.isOK() && !error) {