diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-20 09:31:37 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-20 09:31:37 +0000 |
commit | e4600af202ef9c999df7769e245960248d4d7e59 (patch) | |
tree | fc76ad84f268f81b772a4c12b5498e6ae3be4295 /main/evince/evince-2.32.0-create_thumbnail_frame-null.patch | |
parent | f887c908054f17aefd95dc5b3a2338276d974ae8 (diff) | |
download | aports-e4600af202ef9c999df7769e245960248d4d7e59.tar.bz2 aports-e4600af202ef9c999df7769e245960248d4d7e59.tar.xz |
main/evince: enable tiff backend and fix various issues
most patches are taken frrom gentoo
Diffstat (limited to 'main/evince/evince-2.32.0-create_thumbnail_frame-null.patch')
-rw-r--r-- | main/evince/evince-2.32.0-create_thumbnail_frame-null.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/evince/evince-2.32.0-create_thumbnail_frame-null.patch b/main/evince/evince-2.32.0-create_thumbnail_frame-null.patch new file mode 100644 index 0000000000..19eaf1c91a --- /dev/null +++ b/main/evince/evince-2.32.0-create_thumbnail_frame-null.patch @@ -0,0 +1,25 @@ +From 0fd1f66767ab3b71bef571bf734ce0038d696f4f Mon Sep 17 00:00:00 2001 +From: José Aliste <jaliste@src.gnome.org> +Date: Fri, 26 Nov 2010 14:56:45 +0000 +Subject: document: create_thumbnail_frame should return NULL when + +source_pixbuf is NULL and width and height are not positive. + +Fixes bug #594408 +(cherry picked from commit 3d8180a605e8c98172e9e0e739e22b7f50ed7bad) +--- +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, +-- +cgit v0.9.0.2 |