Skip to content

Commit bd45b3a

Browse files
jbreidenzdenop
authored andcommitted
fix #537: Error in pixClone: pixs not defined
1 parent fd0683f commit bd45b3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ccmain/tesseractclass.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ class Tesseract : public Wordrec {
203203
pix_original_ = original_pix;
204204
// Clone to sublangs as well.
205205
for (int i = 0; i < sub_langs_.size(); ++i)
206-
sub_langs_[i]->set_pix_original(pixClone(original_pix));
206+
sub_langs_[i]->set_pix_original(
207+
original_pix ? pixClone(original_pix) : nullptr);
207208
}
208209
// Returns a pointer to a Pix representing the best available (original) image
209210
// of the page. Can be of any bit depth, but never color-mapped, as that has

0 commit comments

Comments
 (0)