fill layer before using it. Fixes bug #481798, thanks to Jakub Friedl for

2007-09-30  Manish Singh  <yosh@gimp.org>

        * 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
This commit is contained in:
Manish Singh 2007-09-30 08:22:06 +00:00 committed by Manish Singh
parent 7d7a9ca968
commit d70088c961
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-09-30 Manish Singh <yosh@gimp.org>
* 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 <mitch@gimp.org>
* libgimp/gimp.c (gimp_extension_process): loop around select() as

View file

@ -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()