diff options
author | renato <renato.filho@openbossa.org> | 2009-12-08 15:58:11 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-12-08 16:55:09 -0300 |
commit | 00a880f4d61a6a32f3e1dcaa4a692a6e430c123a (patch) | |
tree | cd720a51170898d35a2b384f3040ebd6f9b718f8 /typesystem.cpp | |
parent | 6d16532a7d504cd1fcd7553957e7e53beac7fc37 (diff) |
Fixed support for modify args in add-function tag.
Created tests.
Reviewed by Hugo Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp index b4bdc3ff7..2e1fe0e52 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -1053,7 +1053,8 @@ bool Handler::startElement(const QString &, const QString &n, break; case StackElement::ModifyArgument: { - if (topElement.type != StackElement::ModifyFunction) { + if (topElement.type != StackElement::ModifyFunction + && topElement.type != StackElement::AddFunction) { m_error = QString::fromLatin1("argument modification requires function" " modification as parent, was %1") .arg(topElement.type, 0, 16); |