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:
Florian Festi 2017-07-28 23:33:36 +02:00
parent 83a72552e2
commit e26d17c840
1 changed files with 2 additions and 2 deletions

View File

@ -95,10 +95,10 @@ class AngledBox(Boxes):
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:
lx = x - 2 * h + side
lx = x - 2 * hp + side
else:
lx = x - 2 * r + side