Skip to content

Commit

Permalink
TessResultRenderer: Extend API to access status of renderer
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Oct 18, 2018
1 parent 9c2d1aa commit b0b8dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ class TESS_API TessResultRenderer {
const char* file_extension() const { return file_extension_; }
const char* title() const { return title_.c_str(); }

// Is everything fine? Otherwise something went wrong.
bool happy() { return happy_; }

/**
* Returns the index of the last image given to AddImage
* (i.e. images are incremented whether the image succeeded or not)
Expand Down

0 comments on commit b0b8dfb

Please sign in to comment.