]> git.0d.be Git - empathy.git/commitdiff
look for the right key when checking if altitude is set
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Apr 2010 13:50:48 +0000 (15:50 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Apr 2010 13:51:51 +0000 (15:51 +0200)
libempathy/empathy-contact.c

index ef47fb3803d2bb7ac8c94a50d026a3bf7f90373e..35cfd3a9802315550bcbaf985d76740412757c8e 100644 (file)
@@ -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);