app/gradient_select_cmds.c tools/pdbgen/pdb/gradient_select.pdb

Thu Nov  4 22:06:24 GMT 1999 Andy Thomas <alt@gimp.org>

	* app/gradient_select_cmds.c
	* tools/pdbgen/pdb/gradient_select.pdb

	Fixed crash when main gradient dialog is opened and
	one lauched via the PDB interface (ie scriptfu) is also open.
This commit is contained in:
GMT 1999 Andy Thomas 1999-11-04 22:17:05 +00:00 committed by Andy Thomas
parent 8498428592
commit ff80bf7fdd
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,11 @@
Thu Nov 4 22:06:24 GMT 1999 Andy Thomas <alt@gimp.org>
* app/gradient_select_cmds.c
* tools/pdbgen/pdb/gradient_select.pdb
Fixed crash when main gradient dialog is opened and
one lauched via the PDB interface (ie scriptfu) is also open.
Thu Nov 4 20:46:25 MET 1999 Sven Neumann <sven.gimp.org>
* app/channel.c: get rid of compiler warnings

View File

@ -50,7 +50,7 @@ gradients_get_gradientselect (gchar *name)
{
gsp = (GradientSelect *) list->data;
if (!strcmp (name, gsp->callback_name))
if (gsp->callback_name && !strcmp (name, gsp->callback_name))
return gsp;
}

View File

@ -249,7 +249,7 @@ gradients_get_gradientselect (gchar *name)
{
gsp = (GradientSelect *) list->data;
if (!strcmp (name, gsp->callback_name))
if (gsp->callback_name && !strcmp (name, gsp->callback_name))
return gsp;
}