Return a value from default progress report function

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.
This commit is contained in:
Jaroslaw Kubik 2018-05-30 10:44:13 +02:00
parent 8f6242fd4f
commit e254c9fa38

View File

@ -174,8 +174,9 @@ private:
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;
}
};