allow radius < 1.0 (bug #90957).

2002-08-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sel_gauss.c: allow radius < 1.0 (bug #90957).
This commit is contained in:
Sven Neumann 2002-08-24 23:52:14 +00:00 committed by Sven Neumann
parent efca6c33c5
commit 06f35cca7a
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2002-08-25 Sven Neumann <sven@gimp.org>
* plug-ins/common/sel_gauss.c: allow radius < 1.0 (bug #90957).
2002-08-22 Michael Natterer <mitch@gimp.org>
* app/gui/dialogs-constructors.c: a nicer tab for the selection

View File

@ -105,7 +105,7 @@ query (void)
{ GIMP_PDB_INT32, "run_mode", "Interactive, non-interactive" },
{ GIMP_PDB_IMAGE, "image", "Input image (unused)" },
{ GIMP_PDB_DRAWABLE, "drawable", "Input drawable" },
{ GIMP_PDB_FLOAT, "radius", "Radius of gaussian blur (in pixels > 1.0)" },
{ GIMP_PDB_FLOAT, "radius", "Radius of gaussian blur (in pixels >= 0.1)" },
{ GIMP_PDB_INT32, "maxdelta", "Maximum delta" }
};
@ -170,9 +170,10 @@ run (gchar *name,
{
bvals.radius = param[3].data.d_float;
bvals.maxdelta = CLAMP (param[4].data.d_int32, 0, 255);
if (bvals.radius < 0.1)
status = GIMP_PDB_CALLING_ERROR;
}
if (status == GIMP_PDB_SUCCESS && (bvals.radius < 1.0))
status = GIMP_PDB_CALLING_ERROR;
break;
case GIMP_RUN_WITH_LAST_VALS:
@ -264,7 +265,7 @@ sel_gauss_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), table);
spinbutton = gimp_spin_button_new (&adj,
bvals.radius, 1.0, G_MAXINT, 1.0, 5.0,
bvals.radius, 0.1, G_MAXINT, 1.0, 5.0,
0, 1, 2);
gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
_("_Blur Radius:"), 1.0, 0.5,