aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/plugin/whiteboard
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2007-12-20 11:23:30 +0000
committerDamian Minkov <damencho@jitsi.org>2007-12-20 11:23:30 +0000
commit7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e (patch)
treecab8bc6ef3ae2edbb1331940f9597b788893c6ec /src/net/java/sip/communicator/plugin/whiteboard
parent9e2b9cae6f1e2c54ec4ef35b92f2cc11518d98d6 (diff)
downloadjitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.zip
jitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.tar.gz
jitsi-7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e.tar.bz2
Fix moving images
Diffstat (limited to 'src/net/java/sip/communicator/plugin/whiteboard')
-rw-r--r--src/net/java/sip/communicator/plugin/whiteboard/gui/whiteboardshapes/WhiteboardShapeImage.java8
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();
}