applied patch from LightningIsMyName. Changes the script to not break if

2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
	from LightningIsMyName. Changes the script to not break if 
called
	on a floating selection (bug #327681).


svn path=/trunk/; revision=26728
This commit is contained in:
Sven Neumann
2008-08-23 16:29:39 +00:00
committed by Sven Neumann
parent d4fac257aa
commit d3ca13db06
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-08-23 Sven Neumann <sven@gimp.org>
* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
from LightningIsMyName. Changes the script to not break if called
on a floating selection (bug #327681).
2008-08-23 Lars-Peter Clausen <lars@metafoo.de>
* app/core/gimpgradient.c (gimp_gradient_segment_range_delete):

View File

@ -118,6 +118,14 @@
gradient-reverse)
(begin
(gimp-image-undo-group-start img)
(if (car (gimp-layer-is-floating-sel logo-layer))
(begin
(gimp-floating-sel-to-layer logo-layer)
(set! logo-layer (car (gimp-image-get-active-layer img)))
)
)
(apply-cool-metal-logo-effect img logo-layer size bg-color
gradient gradient-reverse)
(gimp-image-undo-group-end img)