svn commit: r19349 - trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2011-05-04 10:08:03-0700
New Revision: 19349

Modified:
   trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java

Log:
Do not try and ignore the setBounds call if the bounds have not changed (internal components may still have changed and require repositioning)

Modified: trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java?view=diff&pathrev=19349&r1=19348&r2=19349
==============================================================================
--- trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java	(original)
+++ trunk/src/argouml-core-diagrams-activity2/src/org/argouml/activity2/diagram/FigBaseNode.java	2011-05-04 10:08:03-0700
@@ -67,7 +67,9 @@
     // TODO: Move an empty implementation to FigGroup in GEF
     protected void positionChildren() {
         Rectangle myBounds = getBounds();
-        displayState.setBounds(myBounds);
+        if (displayState != null) {
+            displayState.setBounds(myBounds);
+        }
 //      calcBounds();
         updateEdges();
     }
@@ -83,10 +85,6 @@
         
         Rectangle bounds = new Rectangle(x, y, w, h);
         
-        if (oldBounds.equals(bounds)) {
-            return;
-        }
-        
         _x = x;
         _y = y;
         _w = w;

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

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.