diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-12-04 22:26:05 +0100 |
---|---|---|
committer | Alexander Larsson <alex@localhost.localdomain> | 2009-04-02 10:14:06 +0200 |
commit | ac637d9d15471479ad799c9830d2564266a49c88 (patch) | |
tree | cfa820f4f0f1c01ea5568d80817fcbdf5b3a85dd /gdk/gdkpixmap.c | |
parent | be863a9056f905e0adea32d5aea8d5a19a0a4932 (diff) | |
download | gtk+-ac637d9d15471479ad799c9830d2564266a49c88.tar.gz |
gdk_bitmap_create_from_data - drawable may be NULL
Diffstat (limited to 'gdk/gdkpixmap.c')
-rw-r--r-- | gdk/gdkpixmap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdkpixmap.c b/gdk/gdkpixmap.c index 2b6e0739d1..4a67feb4db 100644 --- a/gdk/gdkpixmap.c +++ b/gdk/gdkpixmap.c @@ -252,7 +252,10 @@ gdk_bitmap_create_from_data (GdkDrawable *drawable, { GdkDrawable *source_drawable; - source_drawable = _gdk_drawable_get_source_drawable (drawable); + if (drawable) + source_drawable = _gdk_drawable_get_source_drawable (drawable); + else + source_drawable = NULL; return _gdk_bitmap_create_from_data (source_drawable, data, width, height); } |