summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Le Guennec2014-03-13 11:39:51 (EDT)
committerVincent Lorenzo2014-03-13 11:39:51 (EDT)
commit0fb379aa54074b1cf94ce10009cdf8dabf019b5b (patch)
treedb6398e913cdb19779ea710ef8e0f03b19595e86
parentf751336bb14fa5194900168120e3127673512668 (diff)
downloadorg.eclipse.papyrus-0fb379aa54074b1cf94ce10009cdf8dabf019b5b.zip
org.eclipse.papyrus-0fb379aa54074b1cf94ce10009cdf8dabf019b5b.tar.gz
org.eclipse.papyrus-0fb379aa54074b1cf94ce10009cdf8dabf019b5b.tar.bz2
429769: [All diagrams] Format/Distribute command handler fails with IndexOutOfBoundsException when selection contains a mixed of affixedChildNodes/Links and other elements. https://bugs.eclipse.org/bugs/show_bug.cgi?id=429769
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu/src/org/eclipse/papyrus/uml/diagram/menu/actions/DistributeLinkNodeAction.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu/src/org/eclipse/papyrus/uml/diagram/menu/actions/DistributeLinkNodeAction.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu/src/org/eclipse/papyrus/uml/diagram/menu/actions/DistributeLinkNodeAction.java
index 9ed6864..8577b62 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu/src/org/eclipse/papyrus/uml/diagram/menu/actions/DistributeLinkNodeAction.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.menu/src/org/eclipse/papyrus/uml/diagram/menu/actions/DistributeLinkNodeAction.java
@@ -139,8 +139,6 @@ public class DistributeLinkNodeAction {
return 2;
}
- } else {
- return 1;
}
return 3;
}