mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Merge pull request #787 from ipylypiv/master
Remove redundant condition from TessBaseAPI::AdaptToWordStr()
This commit is contained in:
commit
cf245f8f5c
@ -1974,7 +1974,7 @@ bool TessBaseAPI::AdaptToWordStr(PageSegMode mode, const char* wordstr) {
|
||||
for (t = 0; text[t] != '\0'; ++t) {
|
||||
if (text[t] == '\n' || text[t] == ' ')
|
||||
continue;
|
||||
while (wordstr[w] != '\0' && wordstr[w] == ' ')
|
||||
while (wordstr[w] == ' ')
|
||||
++w;
|
||||
if (text[t] != wordstr[w])
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user