From d70088c9614fbfd2ee72fdb0675377bdd90fefa4 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Sun, 30 Sep 2007 08:22:06 +0000 Subject: [PATCH] fill layer before using it. Fixes bug #481798, thanks to Jakub Friedl for 2007-09-30 Manish Singh * plug-ins/pygimp/plug-ins/foggify.py: fill layer before using it. Fixes bug #481798, thanks to Jakub Friedl for suggesting fix. svn path=/trunk/; revision=23693 --- ChangeLog | 5 +++++ plug-ins/pygimp/plug-ins/foggify.py | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index ed6693bca4..cf35c58491 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-09-30 Manish Singh + + * plug-ins/pygimp/plug-ins/foggify.py: fill layer before using it. + Fixes bug #481798, thanks to Jakub Friedl for suggesting fix. + 2007-09-29 Michael Natterer * libgimp/gimp.c (gimp_extension_process): loop around select() as diff --git a/plug-ins/pygimp/plug-ins/foggify.py b/plug-ins/pygimp/plug-ins/foggify.py index e94ad6f977..faf19780a7 100755 --- a/plug-ins/pygimp/plug-ins/foggify.py +++ b/plug-ins/pygimp/plug-ins/foggify.py @@ -27,6 +27,7 @@ def foggify(img, layer, name, colour, turbulence, opacity): fog = gimp.Layer(img, name, layer.width, layer.height, RGBA_IMAGE, opacity, NORMAL_MODE) + fog.fill(TRANSPARENT_FILL) img.add_layer(fog, 0) oldbg = gimp.get_background()