[gimp] Bug 749777 - Deleting current gradient from script leads to...
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 749777 - Deleting current gradient from script leads to...
- Date: Sat, 6 Jun 2015 21:07:05 +0000 (UTC)
commit 31aa1269ecc5dc9501a9ef09c2241a50076bc8e1
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.
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 17af22d..a94d442 100644
--- a/app/widgets/gimptagentry.c
+++ b/app/widgets/gimptagentry.c
@@ -1230,6 +1230,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]