Skip to content

Commit

Permalink
Fixed a corner case that I've witnessed, but cannot reproduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Feb 19, 2015
1 parent 1aaccf8 commit d80d88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cartopy/mpl/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def path_to_geos(path, force_ccw=False):
isinstance(geom, Polygon) and
collection[-1][0].contains(geom.exterior)):
collection[-1][1].append(geom.exterior)
else:
elif not geom.is_empty:
collection.append((geom, []))

# Convert each (external_geom, [internal_polygons]) pair into a
Expand Down

0 comments on commit d80d88d

Please sign in to comment.