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(); }