fixed crash when Mottle option is selected (mLayer was incorrectly
2007-01-04 Raphael Quinet <raphael@gimp.org> * plug-ins/script-fu/scripts/old-photo.scm: fixed crash when Mottle option is selected (mLayer was incorrectly declared). svn path=/trunk/; revision=21645
This commit is contained in:
committed by
Raphaël Quinet
parent
e640ce4443
commit
9b6ca68c86
@ -57,9 +57,11 @@
|
||||
(set! theWidth (car (gimp-image-width theImage)))
|
||||
(set! theHeight (car (gimp-image-height theImage)))
|
||||
(if (= inMottle TRUE)
|
||||
(begin (set! mLayer (car (gimp-layer-new theImage theWidth theHeight
|
||||
RGBA-IMAGE "Mottle"
|
||||
100 DARKEN-ONLY-MODE)))
|
||||
(let (
|
||||
(mLayer (car (gimp-layer-new theImage theWidth theHeight
|
||||
RGBA-IMAGE "Mottle"
|
||||
100 DARKEN-ONLY-MODE)))
|
||||
)
|
||||
|
||||
(gimp-image-add-layer theImage mLayer 0)
|
||||
(gimp-selection-all theImage)
|
||||
|
||||
Reference in New Issue
Block a user