Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java')
-rw-r--r--plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java b/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java
index 2d444e64..a871ea5c 100644
--- a/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java
+++ b/plugins/org.eclipse.bpmn2.modeler.core/src/org/eclipse/bpmn2/modeler/core/features/containers/LayoutContainerFeature.java
@@ -88,13 +88,8 @@ public class LayoutContainerFeature extends AbstractLayoutBpmn2ShapeFeature {
DIUtils.updateDIShape(rootContainer);
for (PictogramElement pe : FeatureSupport.getPoolAndLaneDescendants(rootContainer)) {
- if (pe instanceof FreeFormConnection) {
- FreeFormConnection c = (FreeFormConnection) pe;
- // only reroute connections between shapes in different containers
- AnchorContainer start = c.getStart().getParent();
- AnchorContainer end = c.getEnd().getParent();
- if (start.eContainer()!=end.eContainer())
- FeatureSupport.updateConnection(getFeatureProvider(), (Connection)pe, true);
+ if (pe instanceof Connection) {
+ FeatureSupport.updateConnection(getFeatureProvider(), (Connection)pe, true);
}
}

Back to the top