Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.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/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..25a167bb02c 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,7 +116,7 @@ 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);
} else if(oldSourceElement instanceof TimeObservation) {

Back to the top