diff options
author | Thomas White <taw@physics.org> | 2018-03-11 16:56:56 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-03-11 16:57:17 +0100 |
commit | 6158d0d7411a6718fab01873109067b227bfa1b8 (patch) | |
tree | 63a534c6f18c1d191bc8e77c755ea64eca6feb50 /src/frame.c | |
parent | 01c0a135250841ed2a5f748432dae8f0052c6874 (diff) |
Avoid creating extra ImageStores
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c index abdebe0..7099209 100644 --- a/src/frame.c +++ b/src/frame.c @@ -505,6 +505,11 @@ void add_image_para(struct frame *fr, SCBlock *scblock, const char *filename, Paragraph *pnew; int wi, hi; + if ( is == NULL ) { + fprintf(stderr, "Adding image without ImageStore!\n"); + return; + } + pnew = create_paragraph(fr); if ( pnew == NULL ) { fprintf(stderr, "Failed to add image paragraph\n"); |