From: Christian Femers Date: Fri, 23 Aug 2019 02:33:36 +0000 (+0200) Subject: Fixed InterfacePinHandle snapping X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=95cea121fde73f3da5a3f14e0c24de554882e67a;p=Mograsim.git Fixed InterfacePinHandle snapping --- diff --git a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java index f585224a..189d3d17 100644 --- a/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java +++ b/net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java @@ -29,7 +29,7 @@ public class InterfacePinHandle extends PinHandle private void initPos() { Point pos = parent.getPos(); - moveTo(pos.x - CIRCLE_RADIUS, pos.y - CIRCLE_RADIUS); + moveTo(pos.x, pos.y); } @Override @@ -78,7 +78,7 @@ public class InterfacePinHandle extends PinHandle @Override protected void moveTo(double x, double y) { - super.moveTo(x, y); + super.moveTo(x - CIRCLE_RADIUS, y - CIRCLE_RADIUS); parent.setRelPos(getCenterX(), getCenterY()); }