From b0b8dfbc816b60f8e0a2872e2fb343c60a25989b Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 18 Oct 2018 19:18:20 +0200 Subject: [PATCH] TessResultRenderer: Extend API to access status of renderer Signed-off-by: Stefan Weil --- src/api/renderer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/renderer.h b/src/api/renderer.h index 55f1a2fa..6c753403 100644 --- a/src/api/renderer.h +++ b/src/api/renderer.h @@ -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)