.corner(): Fix tabs for small arcs

This commit is contained in:
Florian Festi 2019-03-24 21:47:10 +01:00
parent f178215f20
commit 4f4d947253
1 changed files with 2 additions and 1 deletions

View File

@ -624,7 +624,8 @@ class Boxes:
tabrad = -self.tabs / r_
length = abs(r_ * rad)
tabs = min(tabs, max(1, int(abs(length) // (tabs*3*self.tabs))))
tabs = min(tabs, int(length // (tabs*3*self.tabs)))
if tabs and self.tabs:
l = (length - tabs * self.tabs) / tabs
lang = math.degrees(l / r_)
if degrees < 0: