Skip to content

Commit 0d8c6d8

Browse files
committed
Add check for negative gaps
1 parent 3708bdd commit 0d8c6d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SparkFunKiCadPanelizer/panelizer/panelizer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ def startPanelizer(self, args, board=None, ordering=None, logger=None):
315315
SMALLER_THAN = True
316316

317317
# Check gaps
318+
if (GAP_X < 0.0) or (GAP_Y < 0.0):
319+
report += "Gap width can not be negative. Quitting.\n"
320+
sysExit = 2
321+
return sysExit, report
318322
if (GAP_X != 0.0) and (GAP_Y != 0.0):
319323
report += "Specify X or Y gaps, not both. Quitting.\n"
320324
sysExit = 2

0 commit comments

Comments
 (0)