[#540] fixed polyline/multi-lines rotation support

when stuck on stupid things, a good night of sleep is always worthy  !