[Path] fix handling of non-int extensions (cast)
This commit is contained in:
parent
14f795e592
commit
5cd20f9751
1 changed files with 2 additions and 2 deletions
|
|
@ -319,9 +319,9 @@ class Path(Element):
|
||||||
if self.path_type == 4:
|
if self.path_type == 4:
|
||||||
bgn_ext, end_ext = self.extension
|
bgn_ext, end_ext = self.extension
|
||||||
if bgn_ext != 0:
|
if bgn_ext != 0:
|
||||||
b += BGNEXTN.write(stream, bgn_ext)
|
b += BGNEXTN.write(stream, int(bgn_ext))
|
||||||
if end_ext != 0:
|
if end_ext != 0:
|
||||||
b += ENDEXTN.write(stream, end_ext)
|
b += ENDEXTN.write(stream, int(end_ext))
|
||||||
b += XY.write(stream, self.xy)
|
b += XY.write(stream, self.xy)
|
||||||
b += write_properties(stream, self.properties)
|
b += write_properties(stream, self.properties)
|
||||||
b += ENDEL.write(stream, None)
|
b += ENDEL.write(stream, None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue