summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoutheina BANNOUR2014-03-05 05:25:27 (EST)
committerBoutheina BANNOUR2014-03-06 07:42:17 (EST)
commitb578a23a2ba4f2c69ac2acd7dfc66fd167303173 (patch)
tree1a84174b37794bbabc9dcf16af4495cee01112ce
parent9b50c9f7352aadc10fd3cf8edde085fb7fe8c45c (diff)
downloadorg.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.zip
org.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.tar.gz
org.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.tar.bz2
429574: [Sequence Diagram] old annotated element is not removed after
comment link reorient https://bugs.eclipse.org/bugs/show_bug.cgi?id=429574 Signed-off-by: Boutheina BANNOUR <boutheina.bannour@gmail.com>
-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 404efc6..25a167b 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) {