diff options
author | Thomas White <taw@physics.org> | 2017-11-27 00:12:46 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-11-27 00:13:19 +0100 |
commit | e851a106735a5498b3607a029a3091fd74879f3e (patch) | |
tree | c902d8ae358a613586b2280ce71a7ff7e16e8ba4 /src/frame.c | |
parent | 2bf28d3b9de3ae3af076c569ffaccb66e13857f1 (diff) |
Use ImageStore to get image size
Diffstat (limited to 'src/frame.c')
-rw-r--r-- | src/frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |