[Uml-devel] branches/KDE/3.5/kdesdk/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Fri Jan 26 17:25:38 UTC 2007


SVN commit 627460 by okellogg:

addAssociationInViewAndDoc(): Don't attempt umla->setUMLPackage() when umla is NULL.
Thanks to Philippe Le Gal for the problem report at
  http://sourceforge.net/mailarchive/forum.php?thread_id=31539549&forum_id=460
CCMAIL:plegal at appert44.org


 M  +5 -0      ChangeLog  
 M  +1 -1      VERSION  
 M  +4 -0      umbrello/toolbarstateassociation.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #627459:627460
@@ -1,3 +1,8 @@
+Version 1.5.61
+
+* Fixed crash on anchoring note to diagram object
+  http://sourceforge.net/mailarchive/forum.php?thread_id=31539549&forum_id=460
+
 Version 1.5.6
 
 * Fixed save/reload of association widgets for collaboration diagrams
--- branches/KDE/3.5/kdesdk/umbrello/VERSION #627459:627460
@@ -1 +1 @@
-1.5.6
+1.5.61
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/toolbarstateassociation.cpp #627459:627460
@@ -208,6 +208,10 @@
     if (m_pUMLView->addAssociation(a, false)) {
         // if view went ok, then append in document
         UMLAssociation *umla = a->getAssociation();
+        if (umla == NULL) {
+            // association without model representation in UMLDoc
+            return;
+        }
         Uml::Model_Type m = Model_Utils::convert_DT_MT(m_pUMLView->getType());
         UMLDoc *umldoc = UMLApp::app()->getDocument();
         umla->setUMLPackage(umldoc->getRootFolder(m));




More information about the umbrello-devel mailing list