From 9401ff2df969a24edc1a96cab9e2fb0aae7495a5 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Fri, 28 Feb 2020 17:19:11 -0800 Subject: [PATCH] markup: fix bug in ellipse annotation --- markup/img.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markup/img.py b/markup/img.py index e6c6a14..242bfb5 100644 --- a/markup/img.py +++ b/markup/img.py @@ -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.