diff options
author | jaseg <git@jaseg.de> | 2023-04-05 17:44:31 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-04-05 17:44:31 +0200 |
commit | 51327ccfeb9da40326a5f5b16e4925f77c92188b (patch) | |
tree | 667242ee94b5a210bd5d44065dca8e80444facdb /gerbonara/utils.py | |
parent | c10616094c9efcf90b2289371f44f566ce25e2b7 (diff) | |
download | gerbonara-51327ccfeb9da40326a5f5b16e4925f77c92188b.tar.gz gerbonara-51327ccfeb9da40326a5f5b16e4925f77c92188b.tar.bz2 gerbonara-51327ccfeb9da40326a5f5b16e4925f77c92188b.zip |
cad: Add pad numbering for protoboards
Diffstat (limited to 'gerbonara/utils.py')
-rw-r--r-- | gerbonara/utils.py | 3 |
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 |