]> git.lyx.org Git - lyx.git/commitdiff
Reset postcommandargs as well on resetargs (bug #8500)
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 13 Jan 2013 08:16:39 +0000 (09:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 13 Jan 2013 08:16:39 +0000 (09:16 +0100)
src/Layout.cpp
src/insets/InsetLayout.cpp

index 1eaa38aa5fa3b495a590ba70f858bfa736a6eb47..a3f2b103c630b6542e7514961a413b6d21659a3a 100644 (file)
@@ -328,6 +328,7 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                        if (reset) {
                                latexargs_.clear();
                                itemargs_.clear();
+                               postcommandargs_.clear();
                        }
                        break;
 
index 0dc7914dde7f6db102ba17b9a40dff32191f3d02..c1a6c113c27b0445c7a5a2d206c709708a0473a8 100644 (file)
@@ -336,8 +336,10 @@ bool InsetLayout::read(Lexer & lex, TextClass const & tclass)
                case IL_RESETARGS:
                        bool reset;
                        lex >> reset;
-                       if (reset)
+                       if (reset) {
                                latexargs_.clear();
+                               postcommandargs_.clear();
+                       }
                        break;
                case IL_ARGUMENT:
                        readArgument(lex);