From 07061229f3328c3fa5300217004e27f6a12304f8 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Fri, 12 Dec 2008 13:56:46 -0500 Subject: Should not be elseif --- libempathy-gtk/empathy-location-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-location-manager.c b/libempathy-gtk/empathy-location-manager.c index b658b13d6..9e7ce4597 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); -- cgit v1.2.3