do not do the same thing twice
This commit is contained in:
parent
9993b65022
commit
ce66db017e
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue