svn commit: r18613 - trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2010-07-31 04:58:40-0700
New Revision: 18613

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

Log:
Only call setBounds if the bounds have actually changed

Modified: trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java?view=diff&pathrev=18613&r1=18612&r2=18613
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/diagram/ui/FigNodeModelElement.java	2010-07-31 04:58:40-0700
@@ -1054,8 +1054,11 @@
         if (isResizable()) {
             bbox.width = Math.max(bbox.width, minSize.width);
             bbox.height = Math.max(bbox.height, minSize.height);
-            setBounds(bbox.x, bbox.y, bbox.width, bbox.height);
-        } else {
+        }
+        if (bbox.x != getX()
+                && bbox.y != getY()
+                && bbox.width != getWidth()
+                && bbox.height != getHeight()) {
             setBounds(bbox.x, bbox.y, bbox.width, bbox.height);
         }
     }

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

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.