fix use of polyline segments for tools based on lines, arcs

add snap to selection center