diff --git a/src/SixLabors.Svg/RenderTree/SvgPathOperation.cs b/src/SixLabors.Svg/RenderTree/SvgPathOperation.cs index 85eec50..3f4fea7 100644 --- a/src/SixLabors.Svg/RenderTree/SvgPathOperation.cs +++ b/src/SixLabors.Svg/RenderTree/SvgPathOperation.cs @@ -166,7 +166,7 @@ namespace SixLabors.Svg.Dom } // we can skip 'whitespace' } - if (char.IsDigit(str[position]) || str[position] == '-' || str[position] == '.') + if (char.IsDigit(str[position]) || (str[position] == '-' && floatStart == 0) || str[position] == '.') { if (floatStart == 0) { floatStart = position; } }