Fixed InterfacePinHandle snapping
authorChristian Femers <femers@in.tum.de>
Fri, 23 Aug 2019 02:33:36 +0000 (04:33 +0200)
committerChristian Femers <femers@in.tum.de>
Fri, 23 Aug 2019 02:33:36 +0000 (04:33 +0200)
net.mograsim.logic.model.editor/src/net/mograsim/logic/model/editor/handles/InterfacePinHandle.java

index f585224..189d3d1 100644 (file)
@@ -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());
        }