[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/clipboard
Oliver Kellogg
okellogg at users.sourceforge.net
Sat Apr 14 13:45:00 UTC 2007
SVN commit 653884 by okellogg:
decodeClip4(): Don't append widget to the widget list if view->loadWidgetFromXMI() failed.
M +2 -1 umldrag.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/clipboard/umldrag.cpp #653883:653884
@@ -727,7 +727,8 @@
UMLView *view = UMLApp::app()->getCurrentView();
while ( !widgetElement.isNull() ) {
UMLWidget* widget = view->loadWidgetFromXMI(widgetElement);
- widgets.append(widget);
+ if (widget)
+ widgets.append(widget);
widgetNode = widgetNode.nextSibling();
widgetElement = widgetNode.toElement();
}
More information about the umbrello-devel
mailing list