mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
fix #1889: part 2
This commit is contained in:
parent
e1245f5c54
commit
5dfce7471c
@ -709,7 +709,7 @@ bool TessPDFRenderer::imageToPDFObj(Pix *pix,
|
|||||||
return false;
|
return false;
|
||||||
*pdf_object = nullptr;
|
*pdf_object = nullptr;
|
||||||
*pdf_object_size = 0;
|
*pdf_object_size = 0;
|
||||||
if (!filename)
|
if (!filename && !pix)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
L_Compressed_Data *cid = nullptr;
|
L_Compressed_Data *cid = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user