From: Colin Clark Date: Sun, 13 Feb 2022 13:56:40 +0000 (+0000) Subject: Fix #965: View in new window - blank image X-Git-Tag: gtk2final~43 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=97b1d0546e3c2e7ca18bbd3483087b02668f3df8 Fix #965: View in new window - blank image https://github.com/BestImageViewer/geeqie/issues/965 The problem occurs when zoom is set to Original Size and Preload Next Image is set. An extra reload is required to force the image to be displayed. This is probably not the correct solution. --- diff --git a/src/img-view.c b/src/img-view.c index 74399269..b5f3bd5c 100644 --- a/src/img-view.c +++ b/src/img-view.c @@ -1006,6 +1006,14 @@ static ViewWindow *real_view_window_new(FileData *fd, GList *list, CollectionDat file_data_register_notify_func(view_window_notify_cb, vw, NOTIFY_PRIORITY_LOW); + /** @FIXME This is a hack to fix #965 View in new window - blank image + * The problem occurs when zoom is set to Original Size and Preload + * Next Image is set. + * An extra reload is required to force the image to be displayed. + * This is probably not the correct solution. + **/ + image_reload(vw->imd); + return vw; }