Correct comparison of which end of polyline is closer
Correct comparison of which end of polyline is closer

Oops. Pretty obvious.

Contributes to issue CURA-7558.

Ultimaker/CuraEngine,Ultimaker/CuraEngine