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.
This commit is contained in:
CST 1998 Larry Ewing 1998-03-20 04:06:13 +00:00 committed by Larry Ewing
parent 23f486db2a
commit eff6ee8b64
4 changed files with 17 additions and 21 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */