From 3655791d21c208edb13a71dfd322ea0794d8db08 Mon Sep 17 00:00:00 2001 From: Dave Lambert Date: Mon, 26 Nov 2018 11:52:23 +0000 Subject: [PATCH] Correctly size image windows opened from collections When opening a view window from a collection, get the the image size info from the file so the new window is appropriately sized. --- src/img-view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/img-view.c b/src/img-view.c index 016ab37d..a82fa01b 100644 --- a/src/img-view.c +++ b/src/img-view.c @@ -871,6 +871,9 @@ static ViewWindow *real_view_window_new(FileData *fd, GList *list, CollectionDat if (cd && info) { image_change_from_collection(vw->imd, cd, info, image_zoom_get_default(NULL)); + /* Grab the fd so we can correctly size the window in + the call to image_load_dimensions() below. */ + fd = info->fd; if (options->image.enable_read_ahead) { CollectInfo * r_info = collection_next_by_info(cd, info); -- 2.20.1