GNOME Bugzilla – Bug 158392
PF_LAYER and others will fail in an unsaved image.
Last modified: 2004-12-22 21:47:04 UTC
Hi, The widgets for imputing images, layers, drawables and channels in python-fu scripts rely on combining the img.filename property with another string. However, img.filename is "None" if the iamge is still unsaved. That means that any python-fu that uses one of these input types will not work on a newly created image.
Created attachment 33820 [details] [review] Patch fixing issue Proposed patch fixes issue by using "img.name" if there is no filename on the image.
2004-11-16 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/gimpui.py: Use img.name if filename is not available (bug #158392). Patch by Joao S. O. Bueno.