From e27ee600986b1e4a01633d1b761cb611a6d3875a Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 13 Jan 2013 09:16:39 +0100 Subject: [PATCH] Reset postcommandargs as well on resetargs (bug #8500) --- src/Layout.cpp | 1 + src/insets/InsetLayout.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Layout.cpp b/src/Layout.cpp index 1eaa38aa5f..a3f2b103c6 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 0dc7914dde..c1a6c113c2 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); -- 2.39.5