Make sure to calculate with float objects.

This commit is contained in:
Joachim Bauch 2022-03-02 15:29:48 +01:00
parent 3d8f82d70f
commit 9972ac6548
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -66,7 +66,7 @@ def annotate(fp_in, annotations):
y = annotation['y']
if angle == 0:
x = float(x)
y = size[3] - float(y) - 20
y = float(size[3]) - float(y) - 20
elif angle == 90:
x, y = float(y) - 2, float(x) - 15
else: