]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikcoord.c
Add support for kml files.
[andy/viking.git] / src / vikcoord.c
index 163b52a67ec590b3f2f9e6280ff5d5692157e965..c61f30ecfb56525b58f2452fb75c96d516de40fc 100644 (file)
@@ -27,7 +27,7 @@
 
 void vik_coord_convert(VikCoord *coord, VikCoordMode dest_mode)
 {
-  static VikCoord tmp;
+  VikCoord tmp;
   if ( coord->mode != dest_mode )
   {
     if ( dest_mode == VIK_COORD_LATLON ) {
@@ -56,7 +56,7 @@ void vik_coord_copy_convert(const VikCoord *coord, VikCoordMode dest_mode, VikCo
 
 static gdouble vik_coord_diff_safe(const VikCoord *c1, const VikCoord *c2)
 {
-  static struct LatLon a, b;
+  struct LatLon a, b;
   vik_coord_to_latlon ( c1, &a );
   vik_coord_to_latlon ( c2, &b );
   return a_coords_latlon_diff ( &a, &b );