Skip to content

Commit

Permalink
Merge pull request #2966 from robinwatts/pushback2
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop authored May 16, 2020
2 parents 5d9b181 + 80d4af6 commit 064b440
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ccstruct/debugpixa.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ class DebugPixa {
// TODO(rays) add another constructor with size control.
DebugPixa() {
pixa_ = pixaCreate(0);
#ifdef TESSERACT_DISABLE_DEBUG_FONTS
fonts_ = NULL;
#else
fonts_ = bmfCreate(nullptr, 14);
#endif
}
// If the filename_ has been set and there are any debug images, they are
// written to the set filename_.
Expand Down

0 comments on commit 064b440

Please sign in to comment.