svn commit: r3324 - trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java

damencho at dev.java.net damencho at dev.java.net
Thu Dec 20 12:23:32 CET 2007


Author: damencho
Date: 2007-12-20 11:23:30+0000
New Revision: 3324

Modified:
   trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java

Log:
Fix moving images

Modified: trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java?view=diff&rev=3324&p1=trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java&p2=trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java&r1=3323&r2=3324
==============================================================================
--- trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java	(original)
+++ trunk/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java	2007-12-20 11:23:30+0000
@@ -184,11 +184,11 @@
      */
     public void translate (double deltaX, double deltaY)
     {
-        double x = whiteboardPoint.getX ();
-        double y = whiteboardPoint.getY ();
+        double cx = whiteboardPoint.getX ();
+        double cy = whiteboardPoint.getY ();
 
-        x += deltaX;
-        y += deltaY;
+        this.getWhiteboardPoint().setX(cx + deltaX);
+        this.getWhiteboardPoint().setY(cy + deltaY);
 
         this.recalculateSelectionPoints();
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: commits-help at sip-communicator.dev.java.net





More information about the commits mailing list