aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-icon-stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-icon-stream.c')
-rw-r--r--mail/em-icon-stream.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mail/em-icon-stream.c b/mail/em-icon-stream.c
index 538133be06..c1125b8877 100644
--- a/mail/em-icon-stream.c
+++ b/mail/em-icon-stream.c
@@ -180,6 +180,13 @@ emis_fit(GdkPixbuf *pixbuf, int maxwidth, int maxheight, int *scale)
height = maxheight;
}
+ /* check if we don't want to scale down too much, if so, do 1 pixel width/height */
+ if (width <= 0)
+ width = 1;
+
+ if (height <= 0)
+ height = 1;
+
#ifdef HAVE_LIBGNOMEUI_GNOME_THUMBNAIL_H
mini = gnome_thumbnail_scale_down_pixbuf(pixbuf, width, height);
#else
b96500dd8473133d0ae3e0352f1a11e1ef6dd6c&showmsg=1'>Expand)AuthorAgeFilesLines * lang/ocaml: Remove softvfp option from ARMv6 build (no longer required)marino2015-06-011-2/+3 * lang/ocaml: Set BROKEN on 2 new ARCHESmarino2015-05-291-4/+4 * MASTER_SITES cleanup.mat2015-05-141-1/+0 * lang/ocaml: Tweak PROFILE handling to support DragonFlymarino2015-05-141-1/+1 * lang/ocaml: Upgrade version 4.01 => 4.02marino2015-04-301-56/+16 * - Add CPE infoamdmi32015-04-251-1/+2 * lang category: Remove $PTHREAD_LIBSmarino2015-03-25