GNOME Bugzilla – Bug 363381
Distort selection can pass wrong value to plug-in-gauss-iir
Last modified: 2008-01-15 14:09:28 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)
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.