AngledBox: Don't overwrite h param
Using h as temporary variable was overwriting the variable containing the height of the box. Fixes #41
This commit is contained in:
parent
83a72552e2
commit
e26d17c840
|
@ -95,10 +95,10 @@ class AngledBox(Boxes):
|
||||||
|
|
||||||
t = self.thickness
|
t = self.thickness
|
||||||
|
|
||||||
r, h, side = self.regularPolygon(2*n+2, h=y/2.0)
|
r, hp, side = self.regularPolygon(2*n+2, h=y/2.0)
|
||||||
|
|
||||||
if n % 2:
|
if n % 2:
|
||||||
lx = x - 2 * h + side
|
lx = x - 2 * hp + side
|
||||||
else:
|
else:
|
||||||
lx = x - 2 * r + side
|
lx = x - 2 * r + side
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue