From 6cb4e7de26ca84cac29775d9a7360c4a20b5cfbf Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 15 Jul 2010 15:45:11 -0300 Subject: Fixed tag processing to accept "inject-code" as child tag of "add-function". MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by Luciano Wolf Reviewed by Renato Araújo --- typesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- cgit v1.2.3