[GRASS-SVN] r50698 - grass-addons/grass6/display/d.shortcuts

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Feb 7 00:35:30 EST 2012


Author: hamish
Date: 2012-02-06 21:35:30 -0800 (Mon, 06 Feb 2012)
New Revision: 50698

Modified:
   grass-addons/grass6/display/d.shortcuts/d.mark
Log:
add a hint for solving a common snafu

Modified: grass-addons/grass6/display/d.shortcuts/d.mark
===================================================================
--- grass-addons/grass6/display/d.shortcuts/d.mark	2012-02-06 14:27:27 UTC (rev 50697)
+++ grass-addons/grass6/display/d.shortcuts/d.mark	2012-02-07 05:35:30 UTC (rev 50698)
@@ -79,15 +79,22 @@
     exec g.parser "$0" "$@"
 fi
 
+
+COORD=`echo "$GIS_OPT_AT" | tr ',' ' '`
+
+
 if [ $GIS_FLAG_M -eq 0 ] ; then
     MAPUN=""
+
+    COORD_x=`echo $COORD | cut -f1 -d' ' | cut -f1 -d'.'`
+    if [ "$COORD_x" -lt -40 ] || [ "$COORD_x" -gt 140 ] ; then
+	g.message "Pretty big value for % of frame. Did you mean to use the -m flag?"
+    fi
 else
     MAPUN="-m"
 fi
 
-COORD=`echo "$GIS_OPT_AT" | tr ',' ' '`
 
-
 if [ "$GIS_OPT_WIDTH" != "0" ] ; then
    DOWIDTH="width $GIS_OPT_WIDTH"
 else



More information about the grass-commit mailing list