Skip to content

Commit

Permalink
fix #537: Error in pixClone: pixs not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreiden authored and zdenop committed Jan 29, 2017
1 parent fd0683f commit bd45b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ccmain/tesseractclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ class Tesseract : public Wordrec {
pix_original_ = original_pix;
// Clone to sublangs as well.
for (int i = 0; i < sub_langs_.size(); ++i)
sub_langs_[i]->set_pix_original(pixClone(original_pix));
sub_langs_[i]->set_pix_original(
original_pix ? pixClone(original_pix) : nullptr);
}
// Returns a pointer to a Pix representing the best available (original) image
// of the page. Can be of any bit depth, but never color-mapped, as that has
Expand Down

0 comments on commit bd45b3a

Please sign in to comment.