Reset postcommandargs as well on resetargs (bug #8500)

This commit is contained in:
Juergen Spitzmueller 2013-01-13 09:16:39 +01:00
parent a3036539b2
commit e27ee60098
2 changed files with 4 additions and 1 deletions

View File

@ -328,6 +328,7 @@ bool Layout::read(Lexer & lex, TextClass const & tclass)
if (reset) {
latexargs_.clear();
itemargs_.clear();
postcommandargs_.clear();
}
break;

View 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);