Commit 3d8180a6 authored by José Aliste's avatar José Aliste

document: create_thumbnail_frame should return NULL when

source_pixbuf is NULL and width and height are not positive.

Fixes bug #594408
parent d673638e
......@@ -56,7 +56,7 @@ create_thumbnail_frame (int width,
}
/* make sure no one is passing us garbage */
g_assert (width_r >= 0 && height_r >= 0);
g_return_val_if_fail (width_r >= 0 && height_r >= 0, NULL);
retval = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
TRUE, 8,
......
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