changeset 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 c56112a165a4
children 550b482f7bd5 198c76b748e0
files src/img-view.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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)
 			{