Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c593a75

Browse files
committed
Bugfix for Python pre-2.5 (Thanks Jorgen Stenarson and Nils Wagner)
svn path=/trunk/matplotlib/; revision=4908
1 parent 5f5774c commit c593a75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def iter_segments(self):
198198
elif code == STOP:
199199
return
200200
else:
201-
num_vertices = NUM_VERTICES[code]
201+
num_vertices = NUM_VERTICES[int(code)]
202202
curr_vertices = vertices[i:i+num_vertices].flatten()
203203
if any(isnan(curr_vertices)):
204204
was_nan = True

0 commit comments

Comments
 (0)