From 00ade60e9ee2a66e796896920a2c687dfa74a82a Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 11 Nov 2008 15:28:26 +0000 Subject: Trivial simplification of the math svn path=/trunk/; revision=1714 --- libempathy-gtk/empathy-avatar-chooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3