svgPathPen: forgot to replace remaining str() with self._ntos()

H and V commands were not passed through the custom number-formatting callable.
This commit is contained in:
Cosimo Lupo 2021-12-19 10:35:27 +00:00
parent a80890b438
commit 9f38d4de12

View File

@ -109,11 +109,11 @@ class SVGPathPen(BasePen):
# vertical line
elif x == self._lastX:
cmd = "V"
pts = str(y)
pts = self._ntos(y)
# horizontal line
elif y == self._lastY:
cmd = "H"
pts = str(x)
pts = self._ntos(x)
# previous was a moveto
elif self._lastCommand == "M":
cmd = None