Fixed a bug in selection where double-click on a segment-piece did not select the entire shape.