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]].

Reply via email to