diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-11 23:28:26 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-11-11 23:28:26 +0800 |
commit | 00ade60e9ee2a66e796896920a2c687dfa74a82a (patch) | |
tree | 82f24f891bdc4a234c9b61a2f225cfba29a4352f | |
parent | 923901ba1e7327d370051bc5abb684771f1f8b08 (diff) | |
download | gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar.gz gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar.bz2 gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar.lz gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar.xz gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.tar.zst gsoc2013-empathy-00ade60e9ee2a66e796896920a2c687dfa74a82a.zip |
Trivial simplification of the math
svn path=/trunk/; revision=1714
-rw-r--r-- | libempathy-gtk/empathy-avatar-chooser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-avatar-chooser.c b/libempathy-gtk/empathy-avatar-chooser.c index 071a7edef..403dcb9ae 100644 --- a/libempathy-gtk/empathy-avatar-chooser.c +++ b/libempathy-gtk/empathy-avatar-chooser.c @@ -551,7 +551,7 @@ avatar_chooser_maybe_convert_and_scale (EmpathyAvatarChooser *chooser, max_factor = factor; if (converted_image_size < max_size) min_factor = factor; - factor = min_factor + (max_factor - min_factor)/2; + factor = (min_factor + max_factor)/2; /* We are done if either: * - min_factor == max_factor. That happens if we resized to |