We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0683f commit bd45b3aCopy full SHA for bd45b3a
ccmain/tesseractclass.h
@@ -203,7 +203,8 @@ class Tesseract : public Wordrec {
203
pix_original_ = original_pix;
204
// Clone to sublangs as well.
205
for (int i = 0; i < sub_langs_.size(); ++i)
206
- sub_langs_[i]->set_pix_original(pixClone(original_pix));
+ sub_langs_[i]->set_pix_original(
207
+ original_pix ? pixClone(original_pix) : nullptr);
208
}
209
// Returns a pointer to a Pix representing the best available (original) image
210
// of the page. Can be of any bit depth, but never color-mapped, as that has
0 commit comments