svn commit: r19198 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-04-07 03:51:02-0700
New Revision: 19198

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java

Log:
Force edge annotations to redraw after drop onto diagram.

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java?view=diff&pathrev=19198&r1=19197&r2=19198
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/UMLDiagram.java	2011-04-07 03:51:02-0700
@@ -645,7 +645,14 @@
             bounds = new Rectangle(location.x, location.y, 0, 0);
         }
 
-        return createDiagramElement(droppedObject, bounds);
+        DiagramElement de = createDiagramElement(droppedObject, bounds);
+        if (de instanceof FigEdgeModelElement) {
+            // Issue 6221 - we need to force the edge to redraw after a drop on
+            // the diagram from explorer or Add to Diagram
+            FigEdgeModelElement fe = (FigEdgeModelElement) de;
+            fe.renderingChanged();
+        }
+        return de;
     }
     
     /**

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2717587

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.