Skip to content

Commit

Permalink
Fixed issue 272
Browse files Browse the repository at this point in the history
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@335 d0cd1f9f-072b-0410-8dd7-cf729c803f20
  • Loading branch information
theraysmith committed May 19, 2010
1 parent c9b3b33 commit aea5be1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dict/permdawg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ WERD_CHOICE *Dict::dawg_permute_and_select(
word.set_rating(0.0);
word.set_certainty(0.0);
if (word.length() + char_choices.length() > MAX_WERD_LENGTH) {
delete[] active_dawgs;
delete[] constraints;
return best_choice; // the word is too long to permute
}
float certainties[MAX_WERD_LENGTH];
Expand Down

0 comments on commit aea5be1

Please sign in to comment.