]> git.street.me.uk Git - andy/viking.git/commitdiff
Use the correct definition.
authorRob Norris <rw_norris@hotmail.com>
Tue, 3 May 2016 19:27:08 +0000 (20:27 +0100)
committerRob Norris <rw_norris@hotmail.com>
Tue, 3 May 2016 19:27:08 +0000 (20:27 +0100)
Luckily the enumeration/definition have the same value of 0,
 so the code has always been working.

src/vikviewport.c

index d8676db7519da4322cc4a38ab4f0454781680472..3370d6797abec5cf44f85d5c185e78215df1b036 100644 (file)
@@ -1638,7 +1638,7 @@ void vik_viewport_compute_bearing ( VikViewport *vp, gint x1, gint y1, gint x2,
     vik_coord_to_latlon ( &test, &ll );
     ll.lat += vik_viewport_get_ympp ( vp ) * vik_viewport_get_height ( vp ) / 11000.0; // about 11km per degree latitude
     a_coords_latlon_to_utm ( &ll, &u );
-    vik_coord_load_from_utm ( &test, VIK_VIEWPORT_DRAWMODE_UTM, &u );
+    vik_coord_load_from_utm ( &test, VIK_COORD_UTM, &u );
     vik_viewport_coord_to_screen ( vp, &test, &tx, &ty );
 
     *baseangle = M_PI - atan2(tx-x1, ty-y1);