summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-12-09 15:48:09 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-12-09 15:48:09 +0000
commit516b7c18ba3006255c8b5ff6af06e8a4a400091f (patch)
tree5da3069097329fda2045e1bb212cfd8d4733c17c /gdk
parent39e143aa6858bc088672258b029d4293b00415fe (diff)
downloadgdk-pixbuf-516b7c18ba3006255c8b5ff6af06e8a4a400091f.tar.gz
Fix a bug in one of my earlier changes. (From Naofumi Yasufuku, #100023)
Mon Dec 9 10:44:59 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors_private): Fix a bug in one of my earlier changes. (From Naofumi Yasufuku, #100023)
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkcolor-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkcolor-x11.c b/gdk/x11/gdkcolor-x11.c
index 279e99fea..f5555789c 100644
--- a/gdk/x11/gdkcolor-x11.c
+++ b/gdk/x11/gdkcolor-x11.c
@@ -876,7 +876,7 @@ gdk_colormap_alloc_colors_private (GdkColormap *colormap,
success[i] = TRUE;
colors[i].pixel = index;
- colormap->colors[i] = colors[i];
+ colormap->colors[index] = colors[i];
private->info[index].ref_count++;
g_hash_table_insert (private->hash,