The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit e27ee600986b1e4a01633d1b761cb611a6d3875a
Author: Juergen Spitzmueller <[email protected]>
Date:   Sun Jan 13 09:16:39 2013 +0100

    Reset postcommandargs as well on resetargs (bug #8500)

diff --git a/src/Layout.cpp b/src/Layout.cpp
index 1eaa38a..a3f2b10 100644
--- a/src/Layout.cpp
+++ b/src/Layout.cpp
@@ -328,6 +328,7 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
                        if (reset) {
                                latexargs_.clear();
                                itemargs_.clear();
+                               postcommandargs_.clear();
                        }
                        break;
 
diff --git a/src/insets/InsetLayout.cpp b/src/insets/InsetLayout.cpp
index 0dc7914..c1a6c11 100644
--- a/src/insets/InsetLayout.cpp
+++ b/src/insets/InsetLayout.cpp
@@ -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);

-----------------------------------------------------------------------

Summary of changes:
 src/Layout.cpp             |    1 +
 src/insets/InsetLayout.cpp |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to