GNOME Bugzilla – Bug 646993
fuzzyborder.scm has typos and uses a deprecated function
Last modified: 2011-08-23 18:05:11 UTC
Created attachment 185392 [details] [review] Patch to fix the problem. On lines 90 and 99 it has inImage when it means theImage and it uses a deprecated method.
Thanks, looks absolutely right :)
At first glance it may look correct but it is not. There are three issues with this script. First, if you change inImage to theImage in line 90, the original image will be left with an active selection when the script completes. Second, the function gimp-image-select-item which fixes the deprecation is affected by three different context settings. To get consistent results from the script a call to gimp-context-set-defaults is needed after gimp-context-push. Third, if you select "Add shadow" the script aborts in line 100 (the call to gimp-image-insert-layer) with an error. The exact error is: Procedure 'gimp-image-insert-layer' has been called with an invalid ID for argument 'layer'. Most likely a plug-in is trying to work on a layer that no longer exists. The third issue is a pre-existing condition unrelated to the suggested patch.
commit 0124c29df159f0acdfc1a321b28cfdb074dc39cd Author: Kevin Cozens <kcozens@svn.gnome.org> Date: Tue Aug 23 13:59:28 2011 -0400 Fixed deprecation warning and script breakage (see bug #646993) Fixed deprecation warning. Fixed script breakage when "Add shadow" was checked due to error in order of arguments. Made chris-color-edge a private procedure. P.S. I can't mark patch as rejected due to a current bug in bugzilla.