From c1e35e5be188b7d664386ca89733786fe6e9a89f Mon Sep 17 00:00:00 2001 From: Sankar P Date: Fri, 28 Jul 2006 08:43:27 +0000 Subject: committed on behalf of Srinivasa Ragavan We dont 2006-07-28 Sankar P * committed on behalf of Srinivasa Ragavan * em-icon-stream.c: (emis_fit): We dont scale on height if the maxheight is zero Fixes 335431 svn path=/trunk/; revision=32431 --- mail/em-icon-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/em-icon-stream.c') diff --git a/mail/em-icon-stream.c b/mail/em-icon-stream.c index 3c975ffaef..7fc69dbaa6 100644 --- a/mail/em-icon-stream.c +++ b/mail/em-icon-stream.c @@ -168,7 +168,7 @@ emis_fit(GdkPixbuf *pixbuf, int maxwidth, int maxheight, int *scale) if ((maxwidth && width > maxwidth) || (maxheight && height > maxheight)) { - if (width >= height) { + if (width >= height || maxheight == 0) { if (scale) *scale = maxwidth * EMIS_SCALE / width; height = height * maxwidth / width; -- cgit