Works for zigzag- and polylines now - and for multiselection.