hocrtransform: fix regression causing hocr text to be not rendered

Fixes #828
This commit is contained in:
James R. Barlow
2021-09-14 17:23:09 -07:00
parent dfa4ce1612
commit f5053158d4
+1 -1
View File
@@ -349,7 +349,7 @@ class HocrTransform:
interword_spaces: bool,
show_bounding_boxes: bool,
):
if line is not None:
if line is None:
return
pxl_line_coords = self.element_coordinates(line)
line_box = self.pt_from_pixel(pxl_line_coords)