summaryrefslogtreecommitdiff
path: root/gerbonara/utils.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2023-04-05 17:44:31 +0200
committerjaseg <git@jaseg.de>2023-04-10 23:57:15 +0200
commit60e893c82d9c1c00bfbaf2cb5121098ccda88fe7 (patch)
treeaaf26a56e64f1af3131e3118aa8c4800d35d5aa4 /gerbonara/utils.py
parentd9b3fafa806722efbbf838a54329902554155d3d (diff)
downloadgerbonara-60e893c82d9c1c00bfbaf2cb5121098ccda88fe7.tar.gz
gerbonara-60e893c82d9c1c00bfbaf2cb5121098ccda88fe7.tar.bz2
gerbonara-60e893c82d9c1c00bfbaf2cb5121098ccda88fe7.zip
cad: Add pad numbering for protoboards
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r--gerbonara/utils.py3
1 files changed, 3 insertions, 0 deletions
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