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:
Raphael Quinet 2007-01-04 13:45:02 +00:00 committed by Raphaël Quinet
parent e640ce4443
commit 9b6ca68c86
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-01-04 Raphaël Quinet <raphael@gimp.org>
* plug-ins/script-fu/scripts/old-photo.scm: fixed crash when
Mottle option is selected (mLayer was incorrectly declared).
2007-01-04 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppreviewarea.c: fixed clipping (bug #392692).

View File

@ -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)