[gimp/gimp-2-6] Bug 582821 – 'Sphere Designer' does not reset correctly...



commit e60eb7a496de129388a8e962b2002459f6a59d47
Author: Martin Nordholts <martinn src gnome org>
Date:   Tue Jul 21 18:52:12 2009 +0200

    Bug 582821 â?? 'Sphere Designer' does not reset correctly...
    
    Make sure to reconstruct the list in the UI when using layers from a
    previous invocation.

 plug-ins/common/sphere-designer.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/sphere-designer.c b/plug-ins/common/sphere-designer.c
index 7fa003a..5421067 100644
--- a/plug-ins/common/sphere-designer.c
+++ b/plug-ins/common/sphere-designer.c
@@ -3034,8 +3034,16 @@ sphere_main (GimpDrawable *drawable)
   memset (img, 0, PREVIEWSIZE * PREVIEWSIZE * 3);
   makewindow ();
 
-  if (!s.com.numtexture)
-    sphere_response (NULL, RESPONSE_RESET, NULL);
+  if (s.com.numtexture == 0)
+    {
+      /* Setup and use default list */
+      sphere_response (NULL, RESPONSE_RESET, NULL);
+    }
+  else
+    {
+      /* Reuse the list from a previous invocation */
+      rebuildlist ();
+    }
 
   gtk_main ();
 



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