We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7976970 commit aef86adCopy full SHA for aef86ad
src/_path.h
@@ -233,10 +233,13 @@ inline void points_in_path(PointArray &points,
233
transformed_path_t trans_path(path, trans);
234
no_nans_t no_nans_path(trans_path, true, path.has_curves());
235
curve_t curved_path(no_nans_path);
236
- contour_t contoured_path(curved_path);
237
- contoured_path.width(r);
238
-
239
- point_in_path_impl(points, contoured_path, result);
+ if (r != 0.0) {
+ contour_t contoured_path(curved_path);
+ contoured_path.width(r);
+ point_in_path_impl(points, contoured_path, result);
240
+ } else {
241
+ point_in_path_impl(points, curved_path, result);
242
+ }
243
}
244
245
template <class PathIterator>
0 commit comments