git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70635 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -8,7 +8,7 @@
* Jachym Cepicky
* Major updates by Martin Landa <landa.martin gmail.com>
*
- * COPYRIGHT: (C) 2006-2014 by the GRASS Development Team
+ * COPYRIGHT: (C) 2006-2017 by the GRASS Development Team
* This program is free software under the GNU General
* Public License (>=v2). Read the file COPYING that comes
@@ -39,6 +39,8 @@ double max_distance(double maxdistance)
if (maxdistance < 0.0) {
G_get_window(&window);
+ G_begin_distance_calculations();
+
ew_dist1 =
G_distance(window.east, window.north, window.west, window.north);
/* EW Dist at South Edge */