diff options
author | Boutheina BANNOUR | 2014-03-05 10:25:27 +0000 |
---|---|---|
committer | Boutheina BANNOUR | 2014-03-06 12:42:17 +0000 |
commit | b578a23a2ba4f2c69ac2acd7dfc66fd167303173 (patch) | |
tree | 1a84174b37794bbabc9dcf16af4495cee01112ce | |
parent | 9b50c9f7352aadc10fd3cf8edde085fb7fe8c45c (diff) | |
download | org.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.tar.gz org.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.tar.xz org.eclipse.papyrus-b578a23a2ba4f2c69ac2acd7dfc66fd167303173.zip |
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.java | 2 |
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) {
|