You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/05/01 21:47:07 UTC

svn commit: r770800 - /incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java

Author: tvolkert
Date: Fri May  1 19:47:07 2009
New Revision: 770800

URL: http://svn.apache.org/viewvc?rev=770800&view=rev
Log:
Fixed issue with Shape.Rotate setAnchor() method

Modified:
    incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java

Modified: incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java?rev=770800&r1=770799&r2=770800&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java (original)
+++ incubator/pivot/trunk/wtk/src/pivot/wtk/media/drawing/Shape.java Fri May  1 19:47:07 2009
@@ -117,7 +117,9 @@
         }
 
         public void setAnchor(double anchorX, double anchorY) {
-            if (this.anchorY != anchorY) {
+            if (this.anchorX != anchorX
+                || this.anchorY != anchorY) {
+                this.anchorX = anchorX;
                 this.anchorY = anchorY;
                 affineTransform = null;