[gimp/gimp-2-8] Bug 749777 - Deleting current gradient from script leads to...



commit bb9f0794d7a08c711f4e44ac2fabcab7f1726cc3
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jun 6 23:05:10 2015 +0200

    Bug 749777 - Deleting current gradient from script leads to...
    
    GIMP_IS_TAGGED error and possible Gimp crash (core segfault)
    
    Fix again by restoring code I accidentially deleted in
    ae708d6419d6cd37c75547d86fcad35a09ce7a1f. I don't really understand
    what it is doing but better not remove it without understanding.
    
    (cherry picked from commit 31aa1269ecc5dc9501a9ef09c2241a50076bc8e1)

 app/widgets/gimptagentry.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimptagentry.c b/app/widgets/gimptagentry.c
index 9dc2e84..5333e11 100644
--- a/app/widgets/gimptagentry.c
+++ b/app/widgets/gimptagentry.c
@@ -1229,6 +1229,15 @@ gimp_tag_entry_container_changed (GimpContainer *container,
 
   if (tag_entry->mode == GIMP_TAG_ENTRY_MODE_ASSIGN)
     {
+      for (list = tag_entry->selected_items; list; list = g_list_next (list))
+        {
+          if (gimp_tagged_get_tags (GIMP_TAGGED (list->data)) &&
+              gimp_container_have (GIMP_CONTAINER (tag_entry->container),
+                                   GIMP_OBJECT (list->data)))
+            {
+              break;
+            }
+        }
 
       if (! list)
         {


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