markup: fix bug in ellipse annotation

This commit is contained in:
2020-02-28 17:19:11 -08:00
parent 1e8c71a603
commit 9401ff2df9

View File

@ -144,7 +144,7 @@ def write_square_or_circle(obj, mediabox, path):
if obj["Subtype"] == LIT('Square'):
draw.rectangle(obj['Rect'], fill=None, outline='black', width=3)
else:
draw.ellipse(*obj['Rect'], fill=None, outline='black', width=3)
draw.ellipse(obj['Rect'], fill=None, outline='black', width=3)
# account for the difference in coordinate systems
# between pdf and images.