The SVG parsing code failed to parse scientific notation in BezPath. For example M 0 0 L 1e-123 -4E+5 would fail to parse with SvgParseError::Wrong even though it is a valid SVG path. This error was introduced by 8d10d4e which forgot to negate the conditional, causing the parser to fail when it should succeed.
After this change
The change fixes the error and adds a test for it.
No need to give me write access yet (if I end up wanting to make larger contributions we can revisit). I am happy to just get this in whichever way is faster.
Before this change
The SVG parsing code failed to parse scientific notation in
BezPath
. For exampleM 0 0 L 1e-123 -4E+5
would fail to parse withSvgParseError::Wrong
even though it is a valid SVG path. This error was introduced by 8d10d4e which forgot to negate the conditional, causing the parser to fail when it should succeed.After this change
The change fixes the error and adds a test for it.