[gimp/gimp-2-8] Bug 681140 - Filter Render/Line Nova: renders in black instead...



commit 2b404b0cd00bc0b8dcf3f4ca4d96fca3523224bf
Author: Téo Mazars <teomazars gmail com>
Date:   Sat Nov 22 08:47:21 2014 +0100

    Bug 681140 - Filter Render/Line Nova: renders in black instead...
    
    Store the foreground color before setting the default context.
    
    (cherry picked from commit 4de78f51b31843cdbb9a4b53d7c89fddf13ba111)

 plug-ins/script-fu/scripts/line-nova.scm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/script-fu/scripts/line-nova.scm b/plug-ins/script-fu/scripts/line-nova.scm
index e600a53..1cb5fb3 100644
--- a/plug-ins/script-fu/scripts/line-nova.scm
+++ b/plug-ins/script-fu/scripts/line-nova.scm
@@ -23,9 +23,11 @@
         (radius (max drw-height drw-width))
         (index 0)
         (dir-deg/line (/ 360 num-of-lines))
+        (fg-color (car (gimp-context-get-foreground)))
         )
     (gimp-context-push)
     (gimp-context-set-defaults)
+    (gimp-context-set-foreground fg-color)
 
     (define (draw-vector beg-x beg-y direction)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]