Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-03-07 10:21:37 +0000
committerCamille Letavernier2014-03-07 10:29:38 +0000
commitd233e3e53a03a08ad1cf965dda1a117cdc5883f2 (patch)
tree7cb3add6b52c0dde1c6d94f992cf5293857554d6
parent14e949df0fd33db3fbd6ec1e20114850ca8c31f6 (diff)
parent9a4e0e268a1a1e0a237875ac7dfca9666db374ec (diff)
downloadorg.eclipse.papyrus-d233e3e53a03a08ad1cf965dda1a117cdc5883f2.tar.gz
org.eclipse.papyrus-d233e3e53a03a08ad1cf965dda1a117cdc5883f2.tar.xz
org.eclipse.papyrus-d233e3e53a03a08ad1cf965dda1a117cdc5883f2.zip
Merge contribution from B. Bannour
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
index 404efc6e6b7..b3bdb092270 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
@@ -116,13 +116,13 @@ public class AnnotatedLinkEditCommand extends AbstractTransactionalCommand {
}
if(oldSourceElement != null) {
if(oldSourceElement instanceof Comment) {
- ((Comment)oldSourceElement).getAnnotatedElements().remove(targetElement);
+ ((Comment)oldSourceElement).getAnnotatedElements().remove(oldTargetElement);
} else if(oldSourceElement instanceof DurationObservation) {
- ((DurationObservation)oldSourceElement).getEvents().remove(targetElement);
+ ((DurationObservation)oldSourceElement).getEvents().remove(oldTargetElement);
} else if(oldSourceElement instanceof TimeObservation) {
((TimeObservation)oldSourceElement).setEvent(null);
} else if(oldSourceElement instanceof Constraint) {
- ((Constraint)oldSourceElement).getConstrainedElements().remove(targetElement);
+ ((Constraint)oldSourceElement).getConstrainedElements().remove(oldTargetElement);
}
}
if(sourceElement instanceof Comment) {

Back to the top