Loading
fix: stop NAN propagation from widthStart/End if width specified
In odr's repeated objects, widthStart and widthEnd are not required parameters. cf 13.4 Repeating objects :: ASAM OpenDRIVE®
But if a xodr map misses this element, the width of the original object was not used and a NAN was propagated instead, causing a crash.
This PR adds a "not isnan" check, changes "!=0" to ">0" for defensive purposes (even if this check is already carried on by libopendrive), and provides a unit test