Skip to content

Commit a60df41

Browse files
authored
Merge 474f228 into f793e2d
2 parents f793e2d + 474f228 commit a60df41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/textInfos/offsets.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,8 @@ def _get_boundingRects(self):
240240
locationHelper.RectLTWH.fromPoint(startLocation)
241241
)
242242
else:
243+
if isinstance(startLocation, locationHelper.RectLTRB):
244+
startLocation = startLocation.toLTWH()
243245
rects.append(startLocation)
244246
intersectedRects = []
245247
for rect in rects:

0 commit comments

Comments
 (0)