File 0001-document-create_thumbnail_frame-should-return-NULL-w.patch of Package mingw64-evince

From 3d8180a605e8c98172e9e0e739e22b7f50ed7bad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Aliste?= <jaliste@src.gnome.org>
Date: Fri, 26 Nov 2010 11:56:45 -0300
Subject: [PATCH] document: create_thumbnail_frame should return NULL when
 source_pixbuf is NULL and width and height are not positive.

Fixes bug #594408
---
 libdocument/ev-document-misc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index bfba1ec..e710edb 100644
--- a/libdocument/ev-document-misc.c
+++ b/libdocument/ev-document-misc.c
@@ -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,
-- 
1.7.4.1

openSUSE Build Service is sponsored by