diff src/img-view.c @ 2873:6a16ed6742be

Bug fix: View in new window from files pane When View in New Window was called from a right-click in the files pane, the image was not shown at the correct size
author Colin Clark <colin.clark@cclark.uk>
date Tue, 11 Dec 2018 11:46:00 +0000
parents 4fc59d8e53c0
children 10177e8c588b
line wrap: on
line diff
--- a/src/img-view.c	Fri Nov 30 11:05:43 2018 +0000
+++ b/src/img-view.c	Tue Dec 11 11:46:00 2018 +0000
@@ -886,6 +886,8 @@
 		view_window_set_list(vw, list);
 		vw->list_pointer = vw->list;
 		image_change_fd(vw->imd, (FileData *)vw->list->data, image_zoom_get_default(NULL));
+		/* Set fd to first in list */
+		fd = vw->list->data;
 
 		if (options->image.enable_read_ahead)
 			{