[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Tue May 4 22:39:00 UTC 2004
CVS commit by okellogg:
Fix bug 80913 (crash when creating message in collaboration diagram.)
M +6 -2 associationwidget.cpp 1.97
--- kdesdk/umbrello/umbrello/associationwidget.cpp #1.96:1.97
@@ -109,9 +109,13 @@ AssociationWidget::AssociationWidget(UML
//which handles the right click menu options
if (getAssocType() == at_Coll_Message) {
- setName("");
+ // Create a temporary name to bring on setName()
+ ObjectWidget *ow = static_cast<ObjectWidget*>(m_role[B].m_pWidget);
+ QString localIdStr;
+ localIdStr.setNum(ow->getLocalID());
+ setName("m" + localIdStr);
if (m_pAssociation)
m_pName->setUMLObject( m_pAssociation );
else
- m_pName->setUMLObject( m_role[B].m_pWidget->getUMLObject() );
+ m_pName->setUMLObject( ow->getUMLObject() );
}
}
More information about the umbrello-devel
mailing list