[GRASS-SVN] r73221 - grass/branches/releasebranch_7_4/raster/r.horizon
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Aug 31 10:29:35 PDT 2018
Author: mmetz
Date: 2018-08-31 10:29:35 -0700 (Fri, 31 Aug 2018)
New Revision: 73221
Modified:
grass/branches/releasebranch_7_4/raster/r.horizon/main.c
Log:
r.horizon: check if coordinates are within the current region, fixes #3634 (backport trunk r73129)
Modified: grass/branches/releasebranch_7_4/raster/r.horizon/main.c
===================================================================
--- grass/branches/releasebranch_7_4/raster/r.horizon/main.c 2018-08-31 17:29:23 UTC (rev 73220)
+++ grass/branches/releasebranch_7_4/raster/r.horizon/main.c 2018-08-31 17:29:35 UTC (rev 73221)
@@ -368,6 +368,11 @@
_("Can't read the coordinates from the \"coordinate\" option."));
}
+ if (xcoord < cellhd.west || xcoord >= cellhd.east ||
+ ycoord <= cellhd.south || ycoord > cellhd.north) {
+ G_fatal_error(_("Coordinates are outside of the current region"));
+ }
+
/* Transform the coordinates to row/column */
/*
More information about the grass-commit
mailing list