diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-24 16:59:56 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-24 17:27:12 -0300 |
commit | 653dc64720ae78c633c2282519b9b21fb6491b3b (patch) | |
tree | 7177f362a83e3ca29d777cfb4a950bf800c63802 /typesystem.cpp | |
parent | 9a34c9489429c17a36d248da91be10ca0f927d26 (diff) |
Fix bug#38.
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; |