Applied modified version of first patch for bug #642939.

Original patch supplied by Nelson A. de Oliveira. Modified to not use the
-1 "insanity" for invalid/none layer ID's in scripts per IRC discussion.
This commit is contained in:
Kevin Cozens
2011-03-02 02:21:50 -05:00
parent 8438bc5bb7
commit 403630fd57
4 changed files with 16 additions and 23 deletions

View File

@ -112,15 +112,7 @@
(= remove-bg TRUE)
(= separate-layer TRUE))
(begin
(gimp-by-color-select
active-layer
'(0 0 0)
15
2
TRUE
FALSE
10
FALSE)
(gimp-image-select-color image CHANNEL-OP-REPLACE active-layer '(0 0 0))
(gimp-edit-clear active-layer)))
(if (= keep-selection FALSE)