Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zHaytam committed Aug 23, 2022
1 parent 434bfaf commit 4d0a975
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion SvgPathProperties/BezierCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,14 @@ public Point GetTangentAtLength(double length)

public override string ToString()
{
return base.ToString();
if (IsQuadratic)
{
return $"Q {Cp1.X} {Cp1.Y} {Cp2OrEnd.X} {Cp2OrEnd.Y}";
}
else
{
return $"C {Cp1.X} {Cp1.Y} {Cp2OrEnd.X} {Cp2OrEnd.Y} {End.X} {End.Y}";
}
}
}
}
2 changes: 1 addition & 1 deletion SvgPathProperties/SvgPathProperties.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<RepositoryUrl>https://github.com/zHaytam/SvgPathProperties</RepositoryUrl>
<PackageProjectUrl>https://github.com/zHaytam/SvgPathProperties</PackageProjectUrl>
<PackageTags>svg, path, getTotalLength, getPointAtLength, getBBox, builder</PackageTags>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>

Expand Down

0 comments on commit 4d0a975

Please sign in to comment.