Skip to content

Commit

Permalink
remove condition because fontsize is always > 0
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Sep 20, 2018
1 parent 5d22fdf commit 4ca179d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ char* TessPDFRenderer::GetPDFTextObjects(TessBaseAPI* api,
}
res_it->Next(RIL_SYMBOL);
} while (!res_it->Empty(RIL_BLOCK) && !res_it->IsAtBeginningOf(RIL_WORD));
if (word_length > 0 && pdf_word_len > 0 && fontsize > 0) {
if (word_length > 0 && pdf_word_len > 0) {
double h_stretch =
kCharWidth * prec(100.0 * word_length / (fontsize * pdf_word_len));
pdf_str.add_str_double("", h_stretch);
Expand Down

0 comments on commit 4ca179d

Please sign in to comment.