Skip to content

Commit 4ca179d

Browse files
committed
remove condition because fontsize is always > 0
1 parent 5d22fdf commit 4ca179d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/pdfrenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ char* TessPDFRenderer::GetPDFTextObjects(TessBaseAPI* api,
472472
}
473473
res_it->Next(RIL_SYMBOL);
474474
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));
475-
if (word_length > 0 && pdf_word_len > 0 && fontsize > 0) {
475+
if (word_length > 0 && pdf_word_len > 0) {
476476
double h_stretch =
477477
kCharWidth * prec(100.0 * word_length / (fontsize * pdf_word_len));
478478
pdf_str.add_str_double("", h_stretch);

0 commit comments

Comments
 (0)