aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-07-15 15:45:11 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:07 -0300
commit6cb4e7de26ca84cac29775d9a7360c4a20b5cfbf (patch)
tree29de69aee5fd953c41cbb1218a3dd8dd08d5f487
parent9ffc134e0a810ae2deb1d44c24c5d0e4e8123c86 (diff)
Fixed tag processing to accept "inject-code" as child tag of "add-function".
Reviewed by Luciano Wolf <luciano.wolf@openbossa.org> Reviewed by Renato Araújo <renato.filho@openbossa.org>
-rw-r--r--typesystem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 70f5dc9bd..82c903eb2 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -1402,7 +1402,8 @@ bool Handler::startElement(const QString &, const QString &n,
case StackElement::InjectCode: {
- if (((!topElement.type & StackElement::ComplexTypeEntryMask))
+ if (!(topElement.type & StackElement::ComplexTypeEntryMask)
+ && (topElement.type != StackElement::AddFunction)
&& (topElement.type != StackElement::ModifyFunction)
&& (topElement.type != StackElement::Root)) {
m_error = "wrong parent type for code injection";