Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2019-02-01 10:05:50 -0500
committerPatrick Tessier2019-02-01 11:19:30 -0500
commit60b19c362bb6422ad1720b1e5ee49eeedb46cf1a (patch)
tree980d011f2f32ab8300b8da7a8993a1a493368778
parentb682e1565457a874a4b3049332411bff176506da (diff)
downloadorg.eclipse.papyrus-60b19c362bb6422ad1720b1e5ee49eeedb46cf1a.tar.gz
org.eclipse.papyrus-60b19c362bb6422ad1720b1e5ee49eeedb46cf1a.tar.xz
org.eclipse.papyrus-60b19c362bb6422ad1720b1e5ee49eeedb46cf1a.zip
Bug 539241: [sequence diagram] problem fragments ordering
https://bugs.eclipse.org/bugs/show_bug.cgi?id=539241 fix the problem of index but the probelm of redo remains Change-Id: I7b6c8c2ab98b444e3ab5c879987d2450c421dcc7
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/referencialgrilling/GridManagementEditPolicy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/referencialgrilling/GridManagementEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/referencialgrilling/GridManagementEditPolicy.java
index 89f783dc9fc..4952f953f9e 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/referencialgrilling/GridManagementEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/referencialgrilling/GridManagementEditPolicy.java
@@ -353,7 +353,7 @@ public class GridManagementEditPolicy extends GraphicalEditPolicyEx implements A
int index = 0;
while (index < covered.size()) {
if (covered.get(index) instanceof InteractionOperand) {
- if (covered.get(index - 1) instanceof CombinedFragment) {
+ if (index > 1 && (covered.get(index - 1) instanceof CombinedFragment)) {
index++;
} else {

Back to the top