[Uml-devel] kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Thu Dec 25 23:54:01 UTC 2003
CVS commit by okellogg:
addAssoc: Guard against multiple addition of same widget.
M +1 -1 umlwidget.cpp 1.70
--- kdesdk/umbrello/umbrello/umlwidget.cpp #1.69:1.70
@@ -691,5 +691,5 @@ void UMLWidget::setActivated(bool Active
void UMLWidget::addAssoc(AssociationWidget* pAssoc) {
- if(pAssoc) {
+ if (pAssoc && !m_Assocs.contains(pAssoc)) {
m_Assocs.append(pAssoc);
}
More information about the umbrello-devel
mailing list