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:
parent
a80890b438
commit
9f38d4de12
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user