rectangularRectangle: Make angle calculation more robust

This commit is contained in:
Florian Festi 2020-02-01 14:43:45 +01:00
parent 2a7e1e62d1
commit f8401aac75
1 changed files with 1 additions and 1 deletions

View File

@ -1798,7 +1798,7 @@ class Boxes:
overallwidth = width * (num // 2 + num % 2)
overallheight = height
alpha = math.degrees(math.atan((y-r)/float(x-r)))
alpha = math.degrees(math.atan2(y-r, float(x-r)))
if self.move(overallwidth, overallheight, move, before=True):
return