aboutsummaryrefslogtreecommitdiff
path: root/fiv-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'fiv-view.c')
-rw-r--r--fiv-view.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fiv-view.c b/fiv-view.c
index 22894ee..43b4055 100644
--- a/fiv-view.c
+++ b/fiv-view.c
@@ -1374,7 +1374,8 @@ open_without_swapping_in(FivView *self, const char *uri)
};
GError *error = NULL;
- cairo_surface_t *surface = fiv_io_open(&ctx, &error);
+ cairo_surface_t *surface =
+ fiv_io_image_to_surface(fiv_io_open(&ctx, &error));
if (error) {
g_ptr_array_add(ctx.warnings, g_strdup(error->message));
g_error_free(error);