Fix #965: View in new window - blank image
authorColin Clark <colin.clark@cclark.uk>
Sun, 13 Feb 2022 13:56:40 +0000 (13:56 +0000)
committerColin Clark <colin.clark@cclark.uk>
Sun, 13 Feb 2022 13:56:40 +0000 (13:56 +0000)
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.

src/img-view.c

index 7439926..b5f3bd5 100644 (file)
@@ -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;
 }