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

Skip to content

Commit a8bb2bf

Browse files
committed
Hopefully got to_polygons correct now.
svn path=/trunk/matplotlib/; revision=5576
1 parent 4892a25 commit a8bb2bf

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
@@ -301,7 +301,7 @@ def to_polygons(self, transform=None, width=0, height=0):
301301
if transform is not None:
302302
transform = transform.frozen()
303303

304-
if self.codes is None and width == 0 or height == 0:
304+
if self.codes is None and (width == 0 or height == 0):
305305
if transform is None:
306306
return [self.vertices]
307307
else:

0 commit comments

Comments
 (0)