gimp r26728 - in trunk: . plug-ins/script-fu/scripts
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r26728 - in trunk: . plug-ins/script-fu/scripts
- Date: Sat, 23 Aug 2008 16:29:39 +0000 (UTC)
Author: neo
Date: Sat Aug 23 16:29:39 2008
New Revision: 26728
URL: http://svn.gnome.org/viewvc/gimp?rev=26728&view=rev
Log:
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).
Modified:
trunk/ChangeLog
trunk/plug-ins/script-fu/scripts/coolmetal-logo.scm
Modified: trunk/plug-ins/script-fu/scripts/coolmetal-logo.scm
==============================================================================
--- trunk/plug-ins/script-fu/scripts/coolmetal-logo.scm (original)
+++ trunk/plug-ins/script-fu/scripts/coolmetal-logo.scm Sat Aug 23 16:29:39 2008
@@ -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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]