Skip to content

Commit

Permalink
Return a value from default progress report function
Browse files Browse the repository at this point in the history
The progress reporting function returns a boolean. The returned
value is never used by the tesseract and its meaing is not
documented, which renders the value meaningless. Still, lack of
return should not be premitted.
  • Loading branch information
Jaroslaw Kubik committed May 30, 2018
1 parent 8f6242f commit e254c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ccutil/ocrclass.h
Expand Up @@ -174,8 +174,9 @@ class ETEXT_DESC { // output header
int bottom)
{
if ( ths->progress_callback ) {
(*(ths->progress_callback))(ths->progress, left, right, top, bottom);
return (*(ths->progress_callback))(ths->progress, left, right, top, bottom);
}
return true;
}

};
Expand Down

0 comments on commit e254c9f

Please sign in to comment.