[GRASS-SVN] r73141 - grass/trunk/general/g.region

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 22 12:59:48 PDT 2018


Author: mmetz
Date: 2018-08-22 12:59:48 -0700 (Wed, 22 Aug 2018)
New Revision: 73141

Modified:
   grass/trunk/general/g.region/main.c
Log:
g.region: fix grow option key in warnings

Modified: grass/trunk/general/g.region/main.c
===================================================================
--- grass/trunk/general/g.region/main.c	2018-08-22 19:46:58 UTC (rev 73140)
+++ grass/trunk/general/g.region/main.c	2018-08-22 19:59:48 UTC (rev 73141)
@@ -797,13 +797,15 @@
                 if (G_projection() == PROJECTION_LL && (
                     window.north + xs <= 90.0 + 0.5 * window.ns_res ||
                     window.south - xs >= -90.0 - 0.5 * window.ns_res)) {
-                    G_warning(_("Box option not used with <%s> because a coordinate would become invalid"), "latitude");
+                    G_warning(_("'%s' option not used with <%s> because a coordinate would become invalid"), 
+		              parm.grow->key, "latitude");
                 } else {
                     window.north += xs;
                     window.south -= xs;
                 }
             } else {
-                G_warning(_("Box option not used with <%s> because <%s> would become minor than <%s>"), "latitude", "north", "south");
+                G_warning(_("'%s' option not used with <%s> because <%s> would become minor than <%s>"),
+		          parm.grow->key, "latitude", "north", "south");
             }
             ys = window.ew_res * pix;
             if (window.east + ys > window.west - ys){
@@ -810,7 +812,8 @@
                 window.west -= ys;
                 window.east += ys;
             } else {
-                G_warning(_("Box option not used with <%s> because <%s> would become minor than <%s>"), "longitude", "east", "west");
+                G_warning(_("'%s' option not used with <%s> because <%s> would become minor than <%s>"),
+		          parm.grow->key, "longitude", "east", "west");
             }
             zs = window.tb_res * pix;
             if (window.top + zs > window.bottom - zs){
@@ -817,7 +820,8 @@
                 window.top += zs;
                 window.bottom -= zs;
             } else {
-                G_warning(_("Box option not used with <%s> because <%s> would become minor than <%s>"), "3D", "top", "bottom");
+                G_warning(_("'%s' option not used with <%s> because <%s> would become minor than <%s>"),
+		          parm.grow->key, "3D", "top", "bottom");
             }
         }
     }



More information about the grass-commit mailing list