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

Skip to content

Commit 1a3d441

Browse files
committed
Radius fix in _path.cpp
Updated the points_in_path method to allow negative radii as is implied by the documentation.
1 parent 59e1509 commit 1a3d441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_path.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ points_in_path(const void* const points, const size_t s0,
288288
no_nans_t no_nans_path(trans_path, true, path.has_curves());
289289
curve_t curved_path(no_nans_path);
290290
contour_t contoured_path(curved_path);
291-
contoured_path.width(fabs(r));
291+
contoured_path.width(r);
292292
point_in_path_impl(points, s0, s1, n, contoured_path, result);
293293
}
294294

0 commit comments

Comments
 (0)