aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2008-12-13 02:56:46 +0800
committerPierre-Luc Beaudoin <pierre-luc.beaudoin@collabora.co.uk>2009-06-01 23:35:29 +0800
commit07061229f3328c3fa5300217004e27f6a12304f8 (patch)
tree87f28fa7cd3602ed737422b47f78d4b1d460b159
parent2f6fcddc5dbeba69b7c2cc01d311ad2057f24f19 (diff)
downloadgsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar.gz
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar.bz2
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar.lz
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar.xz
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.tar.zst
gsoc2013-empathy-07061229f3328c3fa5300217004e27f6a12304f8.zip
Should not be elseif
-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);