]> git.0d.be Git - empathy.git/commitdiff
Trivial simplification of the math
authorXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Nov 2008 15:28:26 +0000 (15:28 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Tue, 11 Nov 2008 15:28:26 +0000 (15:28 +0000)
svn path=/trunk/; revision=1714

libempathy-gtk/empathy-avatar-chooser.c

index 071a7edefe0eb1cd8fe05c7d98a5901887624e5f..403dcb9ae69a819e2509f6a32aaaa66ef236fd39 100644 (file)
@@ -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