remove condition because fontsize is always > 0

This commit is contained in:
zdenop 2018-09-20 21:48:44 +02:00
parent 5d22fdfeed
commit 4ca179d3fa

View File

@ -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);