From e851a106735a5498b3607a029a3091fd74879f3e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 27 Nov 2017 00:12:46 +0100 Subject: Use ImageStore to get image size --- src/frame.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frame.c') diff --git a/src/frame.c b/src/frame.c index 86e2733..318ff69 100644 --- a/src/frame.c +++ b/src/frame.c @@ -487,7 +487,7 @@ void add_callback_para(struct frame *fr, SCBlock *bl, SCBlock *mr, void add_image_para(struct frame *fr, SCBlock *scblock, const char *filename, - double w, double h, int editable) + ImageStore *is, double w, double h, int editable) { Paragraph *pnew; int wi, hi; @@ -498,7 +498,7 @@ void add_image_para(struct frame *fr, SCBlock *scblock, const char *filename, return; } - if ( gdk_pixbuf_get_file_info(filename, &wi, &hi) == NULL ) { + if ( imagestore_get_size(is, filename, &wi, &hi) ) { fprintf(stderr, "Couldn't get size for %s\n", filename); wi = 100; hi = 100; -- cgit v1.2.3