| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 35c1dd2 commit 28e664e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -301,7 +301,7 @@ Py_cleanup_path(mpl::PathIterator path, agg::trans_affine trans, bool remove_nan | |||
| 301 | 301 | std::vector<npy_uint8> codes; | |
| 302 | 302 | ||
| 303 | 303 | cleanup_path(path, trans, remove_nans, do_clip, clip_rect, snap_mode, stroke_width, | |
| 304 | - simplify.value(), return_curves, sketch, vertices, codes); | ||
| 304 | + *simplify, return_curves, sketch, vertices, codes); | ||
| 305 | 305 | ||
| 306 | 306 | auto length = static_cast<py::ssize_t>(codes.size()); | |
| 307 | 307 | ||
@@ -360,8 +360,8 @@ Py_convert_to_string(mpl::PathIterator path, agg::trans_affine trans, | |||
| 360 | 360 | simplify = path.should_simplify(); | |
| 361 | 361 | } | |
| 362 | 362 | ||
| 363 | - status = convert_to_string(path, trans, cliprect, simplify.value(), sketch, | ||
| 364 | - precision, codes, postfix, buffer); | ||
| 363 | + status = convert_to_string(path, trans, cliprect, *simplify, sketch, precision, | ||
| 364 | + codes, postfix, buffer); | ||
| 365 | 365 | ||
| 366 | 366 | if (!status) { | |
| 367 | 367 | throw py::value_error("Malformed path codes"); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments