Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 37ec108 + 28e664e commit 5a4bb71Copy full SHA for 5a4bb71
src/_path_wrapper.cpp
@@ -301,7 +301,7 @@ Py_cleanup_path(mpl::PathIterator path, agg::trans_affine trans, bool remove_nan
301
std::vector<npy_uint8> codes;
302
303
cleanup_path(path, trans, remove_nans, do_clip, clip_rect, snap_mode, stroke_width,
304
- simplify.value(), return_curves, sketch, vertices, codes);
+ *simplify, return_curves, sketch, vertices, codes);
305
306
auto length = static_cast<py::ssize_t>(codes.size());
307
@@ -360,8 +360,8 @@ Py_convert_to_string(mpl::PathIterator path, agg::trans_affine trans,
360
simplify = path.should_simplify();
361
}
362
363
- status = convert_to_string(path, trans, cliprect, simplify.value(), sketch,
364
- precision, codes, postfix, buffer);
+ status = convert_to_string(path, trans, cliprect, *simplify, sketch, precision,
+ codes, postfix, buffer);
365
366
if (!status) {
367
throw py::value_error("Malformed path codes");
0 commit comments