summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2014-04-21 12:15:04 +0200
committerinfirit <[email protected]>2014-09-29 16:18:41 +0200
commit1c809012d4a25781926137d01307c998e46c703f (patch)
treef39e1a89f25956f58f9ba9def1d6ddd1e9e22556
parentc8caf0cd9de8e31904a60a60fb5e98e55b59555c (diff)
downloadatril-1c809012d4a25781926137d01307c998e46c703f.tar.bz2
atril-1c809012d4a25781926137d01307c998e46c703f.tar.xz
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
-rw-r--r--libdocument/ev-document-misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index d597127f..6099b7fa 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,