[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
Oliver.Kellogg at t-online.de
Wed Sep 3 10:32:15 UTC 2003
CVS commit by okellogg:
loadChildrenFromXMI(): prevent crash.
M +5 -3 umllistview.cpp 1.49
--- kdesdk/umbrello/umbrello/umllistview.cpp #1.48:1.49
@@ -1923,6 +1923,8 @@ bool UMLListView::loadChildrenFromXMI( U
return false;
umlObject = static_cast<UMLClass *>(umlObject)->findChildObject(nID);
+ if (umlObject) {
connectNewObjectsSlots(umlObject);
item = new UMLListViewItem( parent, label, lvType, umlObject);
+ }
break;
}
@@ -1956,5 +1958,5 @@ bool UMLListView::loadChildrenFromXMI( U
}
} else {
- kdWarning() << "unused list view item" << endl;
+ kdWarning() << "unused list view item " << nID << endl;
}
domElement = node.toElement();
More information about the umbrello-devel
mailing list