[empathy] look for the right key when checking if altitude is set



commit 1c41a18e144b49a0ed793d907db93a049a9d1354
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Apr 8 15:50:48 2010 +0200

    look for the right key when checking if altitude is set

 libempathy/empathy-contact.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index ef47fb3..35cfd3a 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -1265,7 +1265,7 @@ geocode_cb (GeoclueGeocode *geocode,
 
   /* Set the altitude only if it wasn't defined before */
   if (fields & GEOCLUE_POSITION_FIELDS_ALTITUDE &&
-      g_hash_table_lookup (new_location, EMPATHY_LOCATION_LAT) == NULL)
+      g_hash_table_lookup (new_location, EMPATHY_LOCATION_ALT) == NULL)
     {
       tp_asv_set_double (new_location, g_strdup (EMPATHY_LOCATION_ALT),
           altitude);



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