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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-icon-stream.c b/mail/em-icon-stream.c
index b9079e8c02..3c975ffaef 100644
--- a/mail/em-icon-stream.c
+++ b/mail/em-icon-stream.c
@@ -285,7 +285,7 @@ em_icon_stream_get_image(const char *key, unsigned int maxwidth, unsigned int ma
unsigned int scale;
char *realkey;
- if (width >= height)
+ if (maxheight == 0 || width >= height)
scale = width * EMIS_SCALE / maxwidth;
else
scale = height * EMIS_SCALE / maxheight;