[gimp] Bug 767663 - Images appear completely black when images dockable is visible



commit f3b234f543b37dede240beb737460b87a7c80993
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jun 16 00:57:31 2016 +0200

    Bug 767663 - Images appear completely black when images dockable is visible
    
    (file_open_sanitize_image): invalidate the entire projection after
    loading in order to enforce its construction from completely loaded
    layers.

 app/file/file-open.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/app/file/file-open.c b/app/file/file-open.c
index e9ca68d..585616b 100644
--- a/app/file/file-open.c
+++ b/app/file/file-open.c
@@ -727,6 +727,14 @@ file_open_sanitize_image (GimpImage *image,
    */
   gimp_image_clean_all (image);
 
+  /* Make sure the projection is completely constructed from valid
+   * layers, this is needed in case something triggers projection or
+   * image preview creation before all layers are loaded, see bug #767663.
+   */
+  gimp_image_invalidate (image, 0, 0,
+                         gimp_image_get_width  (image),
+                         gimp_image_get_height (image));
+
   /* Make sure all image states are up-to-date */
   gimp_image_flush (image);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]