Commit 3d17c969 authored by Oliver Kellogg's avatar Oliver Kellogg
Browse files

!17 (comment 140469)

On saving <UML:Operation> avoid empty <UML:BehavioralFeature.parameter/>

umbrello/uml1model/operation.cpp
- In function saveToXMI1, before calling writer.writeStartElement for
  "UML:BehavioralFeature.parameter", if m_pSecondary is null and m_List
  is empty then write </UML:Operation> closing element and return.

CCBUG: 363582
parent b1a4f029
......@@ -519,6 +519,10 @@ void UMLOperation::saveToXMI1(QXmlStreamWriter& writer)
writer.writeAttribute(QLatin1String("isOverride"), m_Override ? QLatin1String("true") : QLatin1String("false"));
writer.writeAttribute(QLatin1String("isVirtual"), m_virtual ? QLatin1String("true") : QLatin1String("false"));
writer.writeAttribute(QLatin1String("isInline"), m_inline ? QLatin1String("true") : QLatin1String("false"));
if (m_pSecondary == 0 && m_List.isEmpty()) {
writer.writeEndElement(); // UML:Operation
return;
}
writer.writeStartElement(QLatin1String("UML:BehavioralFeature.parameter"));
if (m_pSecondary) {
writer.writeStartElement(QLatin1String("UML:Parameter"));
......
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