[gimp] file-xmc: Flush each drawable



commit be78ba448f47d172e87b491df85de38bc86f0e9c
Author: Mukund Sivaraman <muks banu com>
Date:   Mon Apr 25 21:03:12 2011 +0530

    file-xmc: Flush each drawable

 plug-ins/common/file-xmc.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index f399b64..aa60fdb 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -768,6 +768,9 @@ load_image (const gchar *filename, GError **error)
                                0, 0, drawable->width, drawable->height);
 
       gimp_progress_update ( (i + 1) / imagesp->nimage);
+
+      gimp_drawable_flush (drawable);
+      gimp_drawable_detach (drawable);
     }
   gimp_progress_update (1.0);
   /* free temporary buffer */
@@ -798,13 +801,7 @@ load_image (const gchar *filename, GError **error)
   XcursorCommentsDestroy (commentsp);
   fclose (fp);
 
-  /*
-   * Update the display...
-   */
-
   gimp_progress_end ();
-  gimp_drawable_flush (drawable);
-  gimp_drawable_detach (drawable);
 
   return image_ID;
 }



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