From 7fda8672e30c2e83ae82207fcd3dd79a2eb8de4e Mon Sep 17 00:00:00 2001 From: Damian Minkov Date: Thu, 20 Dec 2007 11:23:30 +0000 Subject: [PATCH] Fix moving images --- .../gui/whiteboardshapes/WhiteboardShapeImage.java | 8 ++++---- 1 file 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 1ddcfd4bd..066086492 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 void setHeight (double height) */ 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(); }