Can't gimp-edit-fill before image-add-layer

This commit is contained in:
Seth Burgess 1999-06-03 14:11:54 +00:00
parent 800cbad1b9
commit 462055c4f4
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thur Jun 3 9:06:00 CST 1999 Seth Burgess <sjburges@gimp.org>
* plug-ins/script-fu/scripts/drop-shadow.scm: you can't
use gimp-edit-fill until you've attached the drawable to
an image.
Thur Jun 3 1:43:00 CST 1999 Seth Burgess <sjburges@gimp.org>
* app/indicator_area.[ch]

View File

@ -16,12 +16,13 @@
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;
;
; drop-shadow.scm version 1.02 12/13/97
; drop-shadow.scm version 1.03 06/03/99
;
; CHANGE-LOG:
; 1.00 - initial release
; 1.01 - fixed the problem with a remaining copy of the selection
; 1.02 - some code cleanup, no real changes
; 1.03 - can't call gimp-edit-fill until layer is added to image!
;
;
; Copyright (C) 1997 Sven Neumann (neumanns@uni-duesseldorf.de)
@ -120,6 +121,7 @@
"Drop-Shadow"
shadow-opacity
NORMAL)))
(gimp-image-add-layer image shadow-layer -1)
(gimp-layer-set-offsets shadow-layer
shadow-offset-x
shadow-offset-y))
@ -135,7 +137,6 @@
shadow-blur
TRUE
TRUE))
(gimp-image-add-layer image shadow-layer -1)
(gimp-layer-translate shadow-layer shadow-transl-x shadow-transl-y)
(if (= from-selection TRUE)