diff --git a/src/_path.h b/src/_path.h index 176db3168304..8bd684a32346 100644 --- a/src/_path.h +++ b/src/_path.h @@ -752,6 +752,10 @@ int count_bboxes_overlapping_bbox(agg::rect_d &a, BBoxArray &bboxes) agg::rect_d b; int count = 0; + // If bboxes is empty return zero + if (bboxes.dim(0) == 0 || bboxes.dim(1) == 0 || bboxes.dim(2) == 0) + return 0; + if (a.x2 < a.x1) { std::swap(a.x1, a.x2); }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: