mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
remove condition because fontsize is always > 0
This commit is contained in:
parent
5d22fdfeed
commit
4ca179d3fa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user