# HG changeset patch # User Dave Lambert # Date 1543233143 0 # Node ID 9eeb9b0c49fc74eea727cd4ebe62c5b64e964187 # Parent b20a96b979a3f0d3060998371f498ccb9134f2c2 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. diff -r b20a96b979a3 -r 9eeb9b0c49fc src/img-view.c --- a/src/img-view.c Sat Nov 03 17:53:31 2018 +0000 +++ b/src/img-view.c Mon Nov 26 11:52:23 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);