do not do the same thing twice

This commit is contained in:
Nikos Kouremenos 2005-10-14 01:13:10 +00:00
parent 9993b65022
commit ce66db017e

View file

@ -284,7 +284,7 @@ class TabbedChatWindow(chat.Chat):
else:
h = gajim.config.get('avatar_height')
w = int(h * ratio)
scaled_buf = pixbuf.scale_simple(int(w), int(h), gtk.gdk.INTERP_HYPER)
scaled_buf = pixbuf.scale_simple(w, h, gtk.gdk.INTERP_HYPER)
image = xml.get_widget('avatar_image')
image.set_from_pixbuf(scaled_buf)