RegularBox: Fix outside parameter
This commit is contained in:
parent
0dc6aef5d4
commit
0cbd713718
|
@ -40,11 +40,14 @@ class RegularBox(Boxes):
|
||||||
|
|
||||||
r, h, n = self.radius, self.h, self.n
|
r, h, n = self.radius, self.h, self.n
|
||||||
|
|
||||||
# XXX
|
|
||||||
if self.outside:
|
if self.outside:
|
||||||
x = self.adjustSize(x)
|
r = r = r - self.thickness / math.cos(math.radians(360/(2*n)))
|
||||||
y = self.adjustSize(y)
|
if self.top == "none":
|
||||||
h = self.adjustSize(h)
|
h = self.adjustSize(h, False)
|
||||||
|
elif "lid" in self.top and self.top != "angled lid":
|
||||||
|
h = self.adjustSize(h) - self.thickness
|
||||||
|
else:
|
||||||
|
h = self.adjustSize(h)
|
||||||
|
|
||||||
t = self.thickness
|
t = self.thickness
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue