Commit d6ff4174 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

Fixes for commit c7fdfefc saving of tagged values to XMI:

umbrello/uml1model/stereotype.cpp
- In function saveToXMI1 case !m_attrDefs.isEmpty() loop over m_attrDefs
  call writer.writeEndElement() to close the opened <UML:Attribute>.

umbrello/uml1model/umlobject.cpp
- In function save1end case m_TaggedValues.count(), after end of loop
  over m_TaggedValues call writer.writeEndElement() to close the opened
  <UML:ModelElement.taggedValues>.

CCBUG: 73847
parent 3388653c
......@@ -139,8 +139,9 @@ void UMLStereotype::saveToXMI1(QXmlStreamWriter& writer)
writer.writeAttribute(QLatin1String("type"), Uml::PrimitiveTypes::toString(ad.type));
if (!ad.defaultVal.isEmpty())
writer.writeAttribute(QLatin1String("initialValue"), ad.defaultVal);
writer.writeEndElement(); // UML:Attribute
}
writer.writeEndElement();
writer.writeEndElement(); // UML:Stereotype.feature
}
writer.writeEndElement();
}
......
......@@ -927,8 +927,9 @@ void UMLObject::save1end(QXmlStreamWriter& writer)
writer.writeStartElement(QLatin1String("UML:TaggedValue"));
writer.writeAttribute(QLatin1String("tag"), attrDefs[i].name);
writer.writeAttribute(QLatin1String("value"), tv);
writer.writeEndElement();
writer.writeEndElement(); // UML:TaggedValue
}
writer.writeEndElement(); // UML:ModelElement.taggedValues
}
writer.writeEndElement();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment