Skip to content

Commit

Permalink
Merge pull request tesseract-ocr#787 from ipylypiv/master
Browse files Browse the repository at this point in the history
Remove redundant condition from TessBaseAPI::AdaptToWordStr()
  • Loading branch information
zdenop authored Mar 24, 2017
2 parents d2fcfca + cea24b7 commit cf245f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/baseapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cf245f8

Please sign in to comment.