BreakContour() and updateSelection()