[gimp] Bug 582821 – 'Sphere Designer' does not reset correctly...



commit cabcc592f03ff10bcdbc9c969c53f5c03603483a
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 fbd8f4c..b0706a9 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]