Fixed initialisation issue that was crashing the plug-in on repeat runs.
2004-11-17 Dave Neary <bolsh@gimp.org> * plug-ins/common/bumpmap.c: Fixed initialisation issue that was crashing the plug-in on repeat runs. Fixes bug #158494.
This commit is contained in:
parent
9b01de6c28
commit
dded69dcc8
2 changed files with 14 additions and 14 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2004-11-17 Dave Neary <bolsh@gimp.org>
|
||||
|
||||
* plug-ins/common/bumpmap.c: Fixed initialisation issue
|
||||
that was crashing the plug-in on repeat runs. Fixes bug
|
||||
#158494.
|
||||
|
||||
2004-11-17 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/dialogs/print-size-dialog.c: added missing callbacks for the
|
||||
|
|
|
|||
|
|
@ -1042,6 +1042,14 @@ bumpmap_dialog (void)
|
|||
G_CALLBACK (gimp_preview_invalidate),
|
||||
preview);
|
||||
|
||||
/* Initialise drawable (don't initialise offsets if bumpmap_id is
|
||||
already known)*/
|
||||
if (bmvals.bumpmap_id == -1)
|
||||
dialog_new_bumpmap (TRUE);
|
||||
else
|
||||
dialog_new_bumpmap (FALSE);
|
||||
|
||||
|
||||
/* Done */
|
||||
|
||||
gtk_widget_show (dialog);
|
||||
|
|
@ -1471,19 +1479,5 @@ static void
|
|||
dialog_bumpmap_callback (GtkWidget *widget,
|
||||
GimpPreview *preview)
|
||||
{
|
||||
gint value;
|
||||
|
||||
gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (widget), &value);
|
||||
|
||||
if (bmvals.bumpmap_id == value)
|
||||
{
|
||||
dialog_new_bumpmap (FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
bmvals.bumpmap_id = value;
|
||||
dialog_new_bumpmap (TRUE);
|
||||
}
|
||||
|
||||
gimp_preview_invalidate (preview);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue