[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Diego Pettenò
dgp85 at users.sourceforge.net
Mon Mar 13 23:15:02 UTC 2006
SVN commit 518415 by dgp:
Allow new non-deprecated Fork widget to point to end and to have multiple outgoing transitions, or they lose their only feature.
M +5 -2 assocrules.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/assocrules.cpp #518414:518415
@@ -21,6 +21,7 @@
#include "associationwidget.h"
#include "statewidget.h"
#include "activitywidget.h"
+#include "forkjoinwidget.h"
using namespace Uml;
@@ -197,13 +198,15 @@
static_cast<ActivityWidget*>(widgetA)->getActivityType() !=
ActivityWidget::Branch &&
static_cast<ActivityWidget*>(widgetA)->getActivityType() !=
- ActivityWidget::Fork_DEPRECATED ) {
+ ActivityWidget::Fork_DEPRECATED &&
+ dynamic_cast<ForkJoinWidget*>(widgetA) == NULL ) {
return false;
}
// only Forks and Branches can have more than one "outgoing" transition
if( static_cast<ActivityWidget*>(widgetA)->getActivityType() !=
ActivityWidget::Fork_DEPRECATED &&
- static_cast<ActivityWidget*>(widgetA)->getActivityType() !=
+ dynamic_cast<ForkJoinWidget*>(widgetA) == NULL &&
+ static_cast<ActivityWidget*>(widgetA)->getActivityType() !=
ActivityWidget::Branch ) {
AssociationWidgetList list = widgetA->getAssocList();
for (AssociationWidget* assoc = list.first(); assoc; assoc = list.next()) {
More information about the umbrello-devel
mailing list