[empathy] Should not be elseif



commit 07061229f3328c3fa5300217004e27f6a12304f8
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Fri Dec 12 13:56:46 2008 -0500

    Should not be elseif
---
 libempathy-gtk/empathy-location-manager.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c
index b658b13..9e7ce45 100644
--- a/libempathy-gtk/empathy-location-manager.c
+++ b/libempathy-gtk/empathy-location-manager.c
@@ -274,18 +274,18 @@ position_changed_cb (GeocluePosition *position,
   if (fields & GEOCLUE_POSITION_FIELDS_LONGITUDE)
     {
       new_value = tp_g_value_slice_new (G_TYPE_DOUBLE);
-      g_value_set_double (new_value, latitude);
+      g_value_set_double (new_value, longitude);
       g_hash_table_insert (priv->location, EMPATHY_LOCATION_LON, new_value);
       DEBUG ("\t - Longitude: %f", longitude);
     }
-  else if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE)
+  if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE)
     {
       new_value = tp_g_value_slice_new (G_TYPE_DOUBLE);
       g_value_set_double (new_value, latitude);
       g_hash_table_insert (priv->location, EMPATHY_LOCATION_LAT, new_value);
       DEBUG ("\t - Latitude: %f", latitude);
     }
-  else if (fields & GEOCLUE_POSITION_FIELDS_ALTITUDE)
+  if (fields & GEOCLUE_POSITION_FIELDS_ALTITUDE)
     {
       new_value = tp_g_value_slice_new (G_TYPE_DOUBLE);
       g_value_set_double (new_value, altitude);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]