From 653dc64720ae78c633c2282519b9b21fb6491b3b Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Thu, 24 Sep 2009 16:59:56 -0300 Subject: Fix bug#38. --- typesystem.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'typesystem.cpp') diff --git a/typesystem.cpp b/typesystem.cpp index ae5c3a1c8..15166f357 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -777,9 +777,10 @@ bool Handler::startElement(const QString &, const QString &n, const int validParent = StackElement::TypeEntryMask | StackElement::ModifyFunction | StackElement::ModifyField; - if (current->parent && current->parent->type & validParent) - m_docModifications << DocModification(attributes["xpath"], m_currentSignature); - else { + if (current->parent && current->parent->type & validParent) { + QString signature = (current->type & StackElement::TypeEntryMask) ? QString() : m_currentSignature; + m_docModifications << DocModification(attributes["xpath"], signature); + } else { m_error = "modify-documentation must be inside modify-function, " "modify-field or other tags that creates a type"; return false; -- cgit v1.2.3