@@ -90,7 +90,8 @@ def buffer_info(self):
90
90
91
91
def _append_paths_slow (ctx , paths , transforms , clip = None ):
92
92
for path , transform in zip (paths , transforms ):
93
- for points , code in path .iter_segments (transform , clip = clip ):
93
+ for points , code in path .iter_segments (
94
+ transform , remove_nans = True , clip = clip ):
94
95
if code == Path .MOVETO :
95
96
ctx .move_to (* points )
96
97
elif code == Path .CLOSEPOLY :
@@ -118,7 +119,7 @@ def _append_paths_fast(ctx, paths, transforms, clip=None):
118
119
# Convert curves to segment, so that 1. we don't have to handle
119
120
# variable-sized CURVE-n codes, and 2. we don't have to implement degree
120
121
# elevation for quadratic Beziers.
121
- cleaneds = [path .cleaned (transform = transform , clip = clip , curves = False )
122
+ cleaneds = [path .cleaned (transform , remove_nans = True , clip = clip )
122
123
for path , transform in zip (paths , transforms )]
123
124
vertices = np .concatenate ([cleaned .vertices for cleaned in cleaneds ])
124
125
codes = np .concatenate ([cleaned .codes for cleaned in cleaneds ])
0 commit comments