diff options
author | Damian Minkov <damencho@jitsi.org> | 2007-12-20 11:23:30 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2007-12-20 11:23:30 +0000 |
commit | 7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e (patch) | |
tree | cab8bc6ef3ae2edbb1331940f9597b788893c6ec | |
parent | 9e2b9cae6f1e2c54ec4ef35b92f2cc11518d98d6 (diff) | |
download | jitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.zip jitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.tar.gz jitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.tar.bz2 |
Fix moving images
-rw-r--r-- | src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java b/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java index 1ddcfd4..0660864 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java @@ -184,11 +184,11 @@ public class WhiteboardShapeImage */ 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(); } |