* plug-ins/common/ripple.c: set min for "period" scale entry
	to 1 instead of 0, and add error check for noninteractive.
	Fixes bug #357431.
This commit is contained in:
William Skaggs
2006-09-24 16:05:30 +00:00
parent 004da2a537
commit 94de5be39c
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-09-24 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/ripple.c: set min for "period" scale entry
to 1 instead of 0, and add error check for noninteractive.
Fixes bug #357431.
2006-09-24 Michael Natterer <mitch@gimp.org>
* app/actions/context-commands.c: don't allow editing of read-only

View File

@ -197,6 +197,12 @@ run (const gchar *name,
rvals.antialias = (param[8].data.d_int32) ? TRUE : FALSE;
rvals.tile = (param[9].data.d_int32) ? TRUE : FALSE;
if (rvals.period < 1)
{
gimp_message ("Ripple: period must be at least 1.\n");
status = GIMP_PDB_CALLING_ERROR;
}
if (rvals.edges < SMEAR || rvals.edges > BLANK)
status = GIMP_PDB_CALLING_ERROR;
}
@ -607,7 +613,7 @@ ripple_dialog (GimpDrawable *drawable)
/* Period */
scale_data = gimp_scale_entry_new (GTK_TABLE (table), 0, 0,
_("_Period:"), SCALE_WIDTH, 0,
rvals.period, 0, 200, 1, 10, 0,
rvals.period, 1, 200, 1, 10, 0,
TRUE, 0, 0,
NULL, NULL);
g_signal_connect (scale_data, "value-changed",