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 # vertical line
elif x == self._lastX: elif x == self._lastX:
cmd = "V" cmd = "V"
pts = str(y) pts = self._ntos(y)
# horizontal line # horizontal line
elif y == self._lastY: elif y == self._lastY:
cmd = "H" cmd = "H"
pts = str(x) pts = self._ntos(x)
# previous was a moveto # previous was a moveto
elif self._lastCommand == "M": elif self._lastCommand == "M":
cmd = None cmd = None