From: Juergen Spitzmueller Date: Sun, 13 Jan 2013 08:16:39 +0000 (+0100) Subject: Reset postcommandargs as well on resetargs (bug #8500) X-Git-Tag: 2.1.0beta1~925 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e27ee600986b1e4a01633d1b761cb611a6d3875a;p=features.git Reset postcommandargs as well on resetargs (bug #8500) --- 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);