GNOME Bugzilla – Bug 90957
sel_gauss with radius < 1
Last modified: 2002-08-25 20:20:57 UTC
With the attached patch, it is now possible to lauch a selective gaussian blur with a radius less than 1. ------------------------------------------ --- ../gimp-1.3.7/plug-ins/common/sel_gauss.c Sat May 11 06:41:53 2002 +++ sel_gauss.c Fri Aug 16 11:01:50 2002 @@ -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" } }; @@ -171,7 +171,7 @@ run (gchar *name, bvals.radius = param[3].data.d_float; bvals.maxdelta = CLAMP (param[4].data.d_int32, 0, 255); } - if (status == GIMP_PDB_SUCCESS && (bvals.radius < 1.0)) + if (status == GIMP_PDB_SUCCESS && (bvals.radius < 0.1)) status = GIMP_PDB_CALLING_ERROR; break; @@ -264,7 +264,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, 0.1, 5.0, 0, 1, 2); gimp_table_attach_aligned (GTK_TABLE (table), 0, 0, _("_Blur Radius:"), 1.0, 0.5, ------------------------------------------
It would have been easier to apply the patch if you had it attached instead of pasting it as a comment. However, I've now applied it to CVS.
Merci Sven, I was not familiar with bugzilla and it wasn't clear on the new bug page how I could attach a patch. But now I know. ;-) AirBete.