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 363381 - Distort selection can pass wrong value to plug-in-gauss-iir
Distort selection can pass wrong value to plug-in-gauss-iir
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Script-Fu
2.3.x
Other All
: Normal minor
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-10-19 10:21 UTC by Vladimir Savic
Modified: 2008-01-15 14:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vladimir Savic 2006-10-19 10:21:56 UTC
Here is what I get setting Smooth value to 0 in Selection->Distort...

Distort Message
Error while executing
(script-fu-distress-selection 1 2 127 8 4 0 TRUE TRUE)
ERROR: Procedural database execution failed on invalid input arguments:
    (plug-in-gauss-iir 1 1 3 0 1 1)

Because script runs up to some point, gimp gets confused trying to undo changes and easily freezes.
Patch is really simple so I'll post it here directly. Here it goes:

--- distress-selection.scm      2006-10-19 10:37:34.000000000 +0000
+++ distress-selection.scm      2006-10-19 10:38:46.000000000 +0000
@@ -94,7 +94,7 @@
                    SF-ADJUSTMENT _"Threshold (bigger 1<-->255 smaller)" '(127 1 255 1 10 0 0)
                    SF-ADJUSTMENT _"Spread"                 '(8 0 1000 1 10 0 1)
                    SF-ADJUSTMENT _"Granularity (1 is low)" '(4 1 25 1 10 0 1)
-                   SF-ADJUSTMENT _"Smooth"                 '(2 0 150 1 10 0 1)
+                   SF-ADJUSTMENT _"Smooth"                 '(2 1 150 1 10 0 1)
                    SF-TOGGLE     _"Smooth horizontally"    TRUE
                    SF-TOGGLE     _"Smooth vertically"      TRUE)
Comment 1 Sven Neumann 2006-10-19 12:10:17 UTC
2006-10-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/distress-selection.scm: changed range
	for Smoothness value as suggested in bug #363381. Also fixed a typo
	in the menu label.