[gimp] Argh, when removing items, also remove them from the name hash
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gimp] Argh, when removing items, also remove them from the name hash
- Date: Tue, 9 Feb 2010 21:41:31 +0000 (UTC)
commit 7413ec9f3122d52a48329fe296fa637d7af09821
Author: Michael Natterer <mitch gimp org>
Date: Mon Feb 8 01:14:22 2010 +0100
Argh, when removing items, also remove them from the name hash
app/core/gimpitemtree.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpitemtree.c b/app/core/gimpitemtree.c
index 0020205..26eb2ac 100644
--- a/app/core/gimpitemtree.c
+++ b/app/core/gimpitemtree.c
@@ -451,6 +451,9 @@ gimp_item_tree_remove_item (GimpItemTree *tree,
g_object_ref (item);
+ g_hash_table_remove (private->name_hash,
+ gimp_object_get_name (item));
+
gimp_container_remove (container, GIMP_OBJECT (item));
if (parent)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]