DrillBox: Fix holes diameter

by removing radius vs diameter mixup

Resolves: #338
Thanks to https://github.com/KittyDreadful for reporting!
This commit is contained in:
Florian Festi 2021-11-08 11:29:13 +01:00
parent 62b30e3d88
commit 4319b704dd
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class DrillBox(Boxes):
for dx in self.sx:
iy = dy / self.holes
for k in range(self.holes):
self.hole(x + dx / 2, y + (k + 0.5) * iy, d + 0.05)
self.hole(x + dx / 2, y + (k + 0.5) * iy, d=d + 0.05)
if description:
self.rectangularHole(x + dx / 2, y + dy / 2, dx - 2, dy - 2, color=Color.ETCHING)
self.text(