Commit 9adde748 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'Umbrello deletes packages from Class Diagram'.

Package widgets are saved as class widgets and the related uml object type is ot_Package.

FIXED-IN: 2.17.2 (KDE Applications 15.08.2)
parent 70ecfc71
......@@ -251,7 +251,7 @@ UMLWidget* makeWidgetFromXMI(const QString& tag,
widget = new UseCaseWidget(scene, static_cast<UMLUseCase*>(o));
} else if (tag == QLatin1String("classwidget") ||
tag == QLatin1String("UML:ClassWidget") || tag == QLatin1String("UML:ConceptWidget")) {
if (validateObjType(UMLObject::ot_Class, o, id))
if (validateObjType(UMLObject::ot_Class, o, id) || validateObjType(UMLObject::ot_Package, o, id))
widget = new ClassifierWidget(scene, static_cast<UMLClassifier*>(o));
} else if (tag == QLatin1String("packagewidget")) {
if (validateObjType(UMLObject::ot_Package, o, id))
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