applied patch from Ulf-D. Ehlert which fixes a bug which may shrink the

2007-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/drop-shadow.scm: applied patch from
	Ulf-D. Ehlert which fixes a bug which may shrink the image instead
	of enlarging it (bug #478385).

svn path=/trunk/; revision=23636
This commit is contained in:
Sven Neumann 2007-09-24 08:00:14 +00:00 committed by Sven Neumann
parent 9dccbaf623
commit 6e412c1e42
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-09-24 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/drop-shadow.scm: applied patch from
Ulf-D. Ehlert which fixes a bug which may shrink the image instead
of enlarging it (bug #478385).
2007-09-23 Sven Neumann <sven@gimp.org>
* Made 2.4.0-rc3 release.

View File

@ -93,14 +93,14 @@
(set! image-offset-x (- 0 (+ shadow-offset-x
shadow-transl-x)))
(set! shadow-offset-x (- 0 shadow-transl-x))
(set! new-image-width (- new-image-width image-offset-x))))
(set! new-image-width (+ new-image-width image-offset-x))))
(if (< (+ shadow-offset-y shadow-transl-y) 0)
(begin
(set! image-offset-y (- 0 (+ shadow-offset-y
shadow-transl-y)))
(set! shadow-offset-y (- 0 shadow-transl-y))
(set! new-image-height (- new-image-height image-offset-y))))
(set! new-image-height (+ new-image-height image-offset-y))))
(if (> (+ (+ shadow-width shadow-offset-x) shadow-transl-x)
new-image-width)
@ -127,7 +127,7 @@
"Drop Shadow"
shadow-opacity
NORMAL-MODE)))
(gimp-image-add-layer image shadow-layer -1)
(gimp-image-add-layer image shadow-layer -1)
(gimp-layer-set-offsets shadow-layer
shadow-offset-x
shadow-offset-y))