The centre of a polygon is at the origin of the drawing

Note the position of the mouse (centre of the polygon) and the location of the blue dot (at the origin).

Note that prior to placing the polygon, the centre of the diagonal line was in the correct place.