Skip to content

Commit

Permalink
fix #1889: part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Sep 26, 2018
1 parent e1245f5 commit 5dfce74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/pdfrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ bool TessPDFRenderer::imageToPDFObj(Pix *pix,
return false;
*pdf_object = nullptr;
*pdf_object_size = 0;
if (!filename)
if (!filename && !pix)
return false;

L_Compressed_Data *cid = nullptr;
Expand Down

0 comments on commit 5dfce74

Please sign in to comment.