After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 90957 - sel_gauss with radius < 1
sel_gauss with radius < 1
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Plugins
1.x
Other Linux
: Normal enhancement
: 2.0
Assigned To: GIMP Bugs
Daniel Egger
Depends on:
Blocks:
 
 
Reported: 2002-08-16 15:07 UTC by airfullbete
Modified: 2002-08-25 20:20 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description airfullbete 2002-08-16 15:07:33 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,
------------------------------------------
Comment 1 Sven Neumann 2002-08-24 23:49:57 UTC
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.
Comment 2 airfullbete 2002-08-25 20:20:57 UTC
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.