Skip to content
Snippets Groups Projects
Commit c9e30fd6 authored by nkour's avatar nkour
Browse files

make a commit comment a code comment. also add a new line so it is visually...

make a commit comment a code comment. also add a new line so it is visually better to seperate logic and return
parent f9ecc9e4
No related branches found
No related tags found
No related merge requests found
......@@ -412,9 +412,11 @@ def get_scaled_pixbuf(pixbuf, type):
# resize to a width / height for the avatar not to have distortion
# (keep aspect ratio)
# don't make avatars bigger than they are
if pixbuf.get_width() < gajim.config.get(type + '_avatar_width') and \
pixbuf.get_height() < gajim.config.get(type + '_avatar_height'):
return pixbuf # we don't want to make avatar bigger
ratio = float(pixbuf.get_width()) / float(pixbuf.get_height())
if ratio > 1:
w = gajim.config.get(type + '_avatar_width')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment