Commit eff6ee8b authored by CST 1998  Larry Ewing's avatar CST 1998 Larry Ewing Committed by Larry Ewing
Browse files

fixed out of bounds reference in pallete_create. The dialogs are a mess.

Thu Mar 19 22:05:56 CST 1998  Larry Ewing  <lewing@gimp.org>

	* app/palette.c: fixed out of bounds reference in pallete_create.
	The dialogs are a mess.
parent 23f486db
Thu Mar 19 22:05:56 CST 1998 Larry Ewing <lewing@gimp.org>
* app/palette.c: fixed out of bounds reference in pallete_create.
The dialogs are a mess.
Thu Mar 19 18:36:09 PST 1998 Manish Singh <yosh@gimp.org>
* ltmain.sh: libtool patch for Solaris
......
......@@ -150,6 +150,7 @@ palette_create ()
GtkWidget *arrow;
GtkWidget *menu_bar;
GtkWidget *menu_bar_item;
int i;
if (!palette)
{
......@@ -182,13 +183,9 @@ palette_create ()
gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0);
/* The popup menu -- palette_ops */
palette_ops[0].user_data = palette;
palette_ops[1].user_data = palette;
palette_ops[2].user_data = palette;
palette_ops[3].user_data = palette;
palette_ops[4].user_data = palette;
palette_ops[5].user_data = palette;
palette_ops[6].user_data = palette;
for (i = 0; palette_ops[i].label; i++)
palette_ops[i].user_data = palette;
palette->palette_ops = build_menu (palette_ops, NULL);
/* The palette commands pulldown menu */
......
......@@ -150,6 +150,7 @@ palette_create ()
GtkWidget *arrow;
GtkWidget *menu_bar;
GtkWidget *menu_bar_item;
int i;
if (!palette)
{
......@@ -182,13 +183,9 @@ palette_create ()
gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0);
/* The popup menu -- palette_ops */
palette_ops[0].user_data = palette;
palette_ops[1].user_data = palette;
palette_ops[2].user_data = palette;
palette_ops[3].user_data = palette;
palette_ops[4].user_data = palette;
palette_ops[5].user_data = palette;
palette_ops[6].user_data = palette;
for (i = 0; palette_ops[i].label; i++)
palette_ops[i].user_data = palette;
palette->palette_ops = build_menu (palette_ops, NULL);
/* The palette commands pulldown menu */
......
......@@ -150,6 +150,7 @@ palette_create ()
GtkWidget *arrow;
GtkWidget *menu_bar;
GtkWidget *menu_bar_item;
int i;
if (!palette)
{
......@@ -182,13 +183,9 @@ palette_create ()
gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0);
/* The popup menu -- palette_ops */
palette_ops[0].user_data = palette;
palette_ops[1].user_data = palette;
palette_ops[2].user_data = palette;
palette_ops[3].user_data = palette;
palette_ops[4].user_data = palette;
palette_ops[5].user_data = palette;
palette_ops[6].user_data = palette;
for (i = 0; palette_ops[i].label; i++)
palette_ops[i].user_data = palette;
palette->palette_ops = build_menu (palette_ops, NULL);
/* The palette commands pulldown menu */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment