svn commit: r19128 - trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: bobtarling
Date: 2011-03-24 11:10:11-0700
New Revision: 19128
Modified:
trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java
Log:
A comment edge is not listening to its owners deletion but instead to the comment it is attached to
Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java?view=diff&pathrev=19128&r1=19127&r2=19128
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java (original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigEdgeNote.java 2011-03-24 11:10:11-0700
@@ -165,9 +165,8 @@
*/
@Override
public final void removeFromDiagram() {
- Object o = getOwner();
- if (o != null) {
- removeElementListener(o);
+ if (comment != null) {
+ removeElementListener(comment);
}
super.removeFromDiagram();
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2713900
To unsubscribe from this discussion, e-mail: [[email protected]].