gdk_pixmap_new - drawable may be NULL

This commit is contained in:
Alexander Larsson 2008-12-04 22:24:07 +01:00 committed by Alexander Larsson
parent 51d4efd8d2
commit be863a9056

View File

@ -237,7 +237,10 @@ gdk_pixmap_new (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_pixmap_new (source_drawable, width, height, depth);
}