From 93b07314131b6db4e18b30636de8b30c7f3b69b7 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 3 Aug 2007 10:54:59 +0000 Subject: 2007-08-03 mcrha Fix for bug #335566 svn path=/trunk/; revision=33941 --- widgets/misc/e-attachment-bar.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'widgets/misc/e-attachment-bar.c') diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c index 3e964cd1da..711dbf2888 100644 --- a/widgets/misc/e-attachment-bar.c +++ b/widgets/misc/e-attachment-bar.c @@ -225,12 +225,16 @@ e_attachment_bar_create_attachment_cache (EAttachment *attachment) ratio = width / 48; width = 48; height = height / ratio; + if (height == 0) + height = 1; } } else { if (height > 48) { ratio = height / 48; height = 48; width = width / ratio; + if (width == 0) + width = 1; } } @@ -315,12 +319,16 @@ update (EAttachmentBar *bar) ratio = width / 48; width = 48; height = height / ratio; + if (height == 0) + height = 1; } } else { if (height > 48) { ratio = height / 48; height = 48; width = width / ratio; + if (width == 0) + width = 1; } } -- cgit