diff options
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 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"; |