Commit 1a9de769 authored by James Henstridge's avatar James Henstridge Committed by James Henstridge
Browse files

check if gimp_image_get_filename() returns NULL.

2002-08-29  James Henstridge  <james@daa.com.au>

    * pygimp-image.c (img_repr): check if gimp_image_get_filename()
    returns NULL.
parent cbcdadb1
2002-08-29 James Henstridge <james@daa.com.au>
* pygimp-image.c (img_repr): check if gimp_image_get_filename()
returns NULL.
* plug-ins/gimpcons.py: fix up plugin, so that I can test the rest
of pygimp.
......
......@@ -666,7 +666,7 @@ img_repr(PyGimpImage *self)
gchar *name;
name = gimp_image_get_filename(self->ID);
s = PyString_FromFormat("<gimp.image %s>", name);
s = PyString_FromFormat("<gimp.image %s>", name?name:"(null)");
g_free(name);
return s;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment