Skip to content

Commit 2b2baa4

Browse files
committed
Use pybind11 type caster for GCAgg.clippath
Now that everything else is using pybind11, this works without issue.
1 parent 0305729 commit 2b2baa4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/py_converters_11.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ namespace PYBIND11_NAMESPACE { namespace detail {
294294
value.join = src.attr("_joinstyle").cast<agg::line_join_e>();
295295
value.dashes = src.attr("get_dashes")().cast<Dashes>();
296296
value.cliprect = src.attr("_cliprect").cast<agg::rect_d>();
297-
/* value.clippath = src.attr("get_clip_path")().cast<ClipPath>(); */
298-
convert_clippath(src.attr("get_clip_path")().ptr(), &value.clippath);
297+
value.clippath = src.attr("get_clip_path")().cast<ClipPath>();
299298
value.snap_mode = src.attr("get_snap")().cast<e_snap_mode>();
300299
value.hatchpath = src.attr("get_hatch_path")().cast<mpl::PathIterator>();
301300
value.hatch_color = src.attr("get_hatch_color")().cast<agg::rgba>();

0 commit comments

Comments
 (0)