Revert last change and update polyline segments when positions are changed.