fix potential issue for odd segment toolpath locations
fix potential issue for odd segment toolpath locations

Haven't actually seen this issue, but theoretically it might happen

Ultimaker/CuraEngine,Ultimaker/CuraEngine