Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > ce70b94c02a8f080faf3e9c0ceeb9110 > files > 3

atril-1.8.1-3.1.mga5.src.rpm

From 1c809012d4a25781926137d01307c998e46c703f Mon Sep 17 00:00:00 2001
From: raveit65 <chat-to-me@raveit.de>
Date: Mon, 21 Apr 2014 12:15:04 +0200
Subject: [PATCH] create_thumbnail_frame should return NULL when source_pixbuf
 is NULL and width and height are not positive.

fix https://bugzilla.redhat.com/show_bug.cgi?id=1082143
taken from https://git.gnome.org/browse/evince/commit/?id=3d8180a605e8c98172e9e0e739e22b7f50ed7bad
---
 libdocument/ev-document-misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index d597127..6099b7f 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,