gimp/app/colormap_dialog.i.c As Mr. Lamb, report originator noted, an easy

2000-04-02 Garry R. Osgood <gosgood@idt.net>

* gimp/app/colormap_dialog.i.c
As Mr. Lamb, report originator noted, an easy
fix. in ipal_set_image() line 688
Reorganized the initialization of the
indexed palette object so as not to run afoul
of gasserts() inhabiting ipal_draw() and client
routines. These entailed initialing ipal->col_index,
ipal->dnd_col_index prior to call to ipal_draw()
This commit is contained in:
Garry R. Osgood 2000-04-02 19:39:03 +00:00 committed by Garry R. Osgood
parent c4a851230f
commit 9591f4a965
2 changed files with 18 additions and 2 deletions

View File

@ -1,3 +1,18 @@
2000-04-02 Garry R. Osgood <gosgood@idt.net>
* gimp/app/colormap_dialog.i.c
As Mr. Lamb, report originator noted, an easy
fix. in ipal_set_image() line 688
Reorganized the initialization of the
indexed palette object so as not to run afoul
of gasserts() inhabiting ipal_draw() and client
routines. These entailed initialing ipal->col_index,
ipal->dnd_col_index prior to call to ipal_draw()
closes #8252
BTW, my guess is that the "Mystery Commit" at 16:55:47 BST
today is by Mr. Andrew Thomas. Do I win the prize?
2000-04-02 Tuomas Kuosmanen <tigert@gimp.org>
* plug-ins/common/png.c:
@ -7,6 +22,7 @@
I reverted the png change since, while it worked fine for RGBA and
INDEXEDA it totally shred RGB and INDEXED images to pieces.. :(
>>>>>>> 1.2502
Sun Apr 2 16:55:47 BST 2000
* app/bezier_select.c

View File

@ -704,6 +704,8 @@ ipal_set_image (GimpColormapDialog *ipal,
}
}
ipal->col_index = 0;
ipal->dnd_col_index = 0;
if (gimage)
{
if (!ipal->image)
@ -725,8 +727,6 @@ ipal_set_image (GimpColormapDialog *ipal,
gtk_adjustment_changed (ipal->index_adjustment);
}
ipal->col_index = 0;
ipal->dnd_col_index = 0;
gtk_widget_set_sensitive (ipal->add_item,
(gimage && gimage->num_cols < 256));
ipal_update_entries (ipal);