Fix icon size calculation.

This commit is contained in:
Daiki Ueno
2011-03-01 12:51:46 +09:00
parent 18f8e5b98b
commit 9007f31c0a

View File

@ -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;