Skip to content

Commit

Permalink
handle tuples when ensuring non zero area
Browse files Browse the repository at this point in the history
  • Loading branch information
iammosespaulr committed Jan 25, 2025
1 parent 1452098 commit 77ba545
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdftext/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
class Bbox:
def __init__(self, bbox: List[float], ensure_nonzero_area=False):
if ensure_nonzero_area:
bbox = list(bbox)
bbox[2] = max(bbox[0], bbox[2] + 1)
bbox[3] = max(bbox[1], bbox[3] + 1)
self.bbox = bbox
Expand Down

0 comments on commit 77ba545

Please sign in to comment.