From 9007f31c0a520b01335eafd7124731602c48fb4a Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Tue, 1 Mar 2011 12:51:46 +0900 Subject: [PATCH] Fix icon size calculation. --- eek/eek-gtk-renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eek/eek-gtk-renderer.c b/eek/eek-gtk-renderer.c index 75531236..ded29f1f 100644 --- a/eek/eek-gtk-renderer.c +++ b/eek/eek-gtk-renderer.c @@ -85,7 +85,7 @@ eek_gtk_renderer_real_render_key_icon (EekRenderer *self, width = gdk_pixbuf_get_width (pixbuf); height = gdk_pixbuf_get_height (pixbuf); - if (bounds.width * scale * height > bounds.height * scale * width) + if (bounds.width * scale * height < bounds.height * scale * width) scale *= bounds.width * scale / width; else scale *= bounds.height * scale / height;