current point should be the start point of the path after a closepath command
This pull request fixes a bug in the <path> tag parser: after a "closepath" (z) command, the current point should become the start point of the path being closed according to the SVG specs:
If a "closepath" is followed immediately by a "moveto", then the "moveto" identifies the start point of the next subpath. If a "closepath" is followed immediately by any other command, then the next subpath starts at the same initial point as the current subpath.
(source)
The bug manifests itself for paths consisting of multiple path segments (e.g, a letter "a" in certain SVG files when the letter is encoded as a single path such that the outer boundary is the first path segment and the boundary of the "hole" is the second path segment). In this case, when the start point of the second path is specified relative to the start point of the first path (i.e. with a m command immediately following the z command), the current code without the PR calculates the offset relative to the last point of the first path segment and not the first point.
Here's an example:
https://github.com/mtl/svg2mod/issues/35