fix non-numpy write_point_list

This commit is contained in:
Jan Petykiewicz 2020-05-19 00:21:50 -07:00
parent d25f3f1598
commit 715fe7ea24

View File

@ -1559,10 +1559,9 @@ def read_point_list(stream: io.BufferedIOBase) -> List[List[int]]:
points = []
x = 0
y = 0
for _ in range(list_len):
delta = Delta.read(stream)
x += delta.x
y += delta.y
for delta in deltas:
x += delta[0]
y += delta[1]
points.append([x, y])
else:
raise InvalidDataError('Invalid point list type')