From 60e893c82d9c1c00bfbaf2cb5121098ccda88fe7 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 5 Apr 2023 17:44:31 +0200 Subject: cad: Add pad numbering for protoboards --- gerbonara/utils.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gerbonara/utils.py') diff --git a/gerbonara/utils.py b/gerbonara/utils.py index 47fb178..ce5425a 100644 --- a/gerbonara/utils.py +++ b/gerbonara/utils.py @@ -527,6 +527,9 @@ def point_in_polygon(point, poly): def bbox_intersect(a, b): + if a is None or b is None: + return False + (xa_min, ya_min), (xa_max, ya_max) = a (xb_min, yb_min), (xb_max, yb_max) = b -- cgit