Mercurial > hg > forks > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
2869:c56112a165a4 | 2873:6a16ed6742be |
---|---|
884 else if (list) | 884 else if (list) |
885 { | 885 { |
886 view_window_set_list(vw, list); | 886 view_window_set_list(vw, list); |
887 vw->list_pointer = vw->list; | 887 vw->list_pointer = vw->list; |
888 image_change_fd(vw->imd, (FileData *)vw->list->data, image_zoom_get_default(NULL)); | 888 image_change_fd(vw->imd, (FileData *)vw->list->data, image_zoom_get_default(NULL)); |
889 /* Set fd to first in list */ | |
890 fd = vw->list->data; | |
889 | 891 |
890 if (options->image.enable_read_ahead) | 892 if (options->image.enable_read_ahead) |
891 { | 893 { |
892 GList *work = vw->list->next; | 894 GList *work = vw->list->next; |
893 if (work) image_prebuffer_set(vw->imd, (FileData *)work->data); | 895 if (work) image_prebuffer_set(vw->imd, (FileData *)work->data); |