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 7e6be9d + 5e2b03c commit 07fbef1Copy full SHA for 07fbef1
src/_path.cpp
@@ -770,7 +770,14 @@ _path_module::point_in_path_collection(const Py::Tuple& args)
770
throw Py::ValueError("Offsets array must be Nx2");
771
}
772
773
+ Py::List result;
774
+
775
size_t Npaths = paths.length();
776
777
+ if (Npaths == 0) {
778
+ return result;
779
+ }
780
781
size_t Noffsets = offsets->dimensions[0];
782
size_t N = std::max(Npaths, Noffsets);
783
size_t Ntransforms = std::min(transforms_obj.length(), N);
@@ -788,7 +795,6 @@ _path_module::point_in_path_collection(const Py::Tuple& args)
788
795
transforms.push_back(trans);
789
796
790
797
791
- Py::List result;
792
798
agg::trans_affine trans;
793
799
794
800
for (i = 0; i < N; ++i)
0 commit comments