aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-location-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-location-manager.c')
-rw-r--r--libempathy-gtk/empathy-location-manager.c6
1 files changed, 3 insertions, 3 deletions
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);