when setting two trim lines, and clicking on segments not between them, segment is not trimmed properly. when a shape with many segments intersect twice - or more, trim result is wrong.