# HG changeset patch # User Dave Lambert <> # Date 1543254802 0 # Node ID 4fc59d8e53c054047e3e10e7919e17134aa81d2c # Parent 52edc8a3990cdcb3ee0b2dd88c0415a3b701958a Fix #648: Correctly size image windows opened from collections https://github.com/BestImageViewer/geeqie/pull/648 diff -r 52edc8a3990c -r 4fc59d8e53c0 src/img-view.c --- a/src/img-view.c Fri Nov 23 17:11:24 2018 +0000 +++ b/src/img-view.c Mon Nov 26 17:53:22 2018 +0000 @@ -871,6 +871,9 @@ 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);