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

Skip to content

Commit c3c73cc

Browse files
committed
Merge branch 'CTPUG-hatch_segafult'
2 parents 30fddc3 + bed5241 commit c3c73cc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/_backend_agg.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ GCAgg::_set_hatch_path(const Py::Object& gc)
360360
Py::Object method_obj = gc.getAttr("get_hatch_path");
361361
Py::Callable method(method_obj);
362362
hatchpath = method.apply(Py::Tuple());
363+
if (hatchpath.ptr() == NULL)
364+
throw Py::Exception();
363365
}
364366

365367

0 commit comments

Comments
 (0)