Merge pull request #787 from ipylypiv/master

Remove redundant condition from TessBaseAPI::AdaptToWordStr()
This commit is contained in:
zdenop 2017-03-24 10:59:43 +01:00 committed by GitHub
commit cf245f8f5c

View File

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