[GRASS-SVN] r31586 - grass/trunk/scripts/d.rast.leg

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 30 16:20:42 EDT 2008


Author: neteler
Date: 2008-05-30 16:20:41 -0400 (Fri, 30 May 2008)
New Revision: 31586

Modified:
   grass/trunk/scripts/d.rast.leg/d.rast.leg
Log:
remember font setting

Modified: grass/trunk/scripts/d.rast.leg/d.rast.leg
===================================================================
--- grass/trunk/scripts/d.rast.leg/d.rast.leg	2008-05-30 16:39:38 UTC (rev 31585)
+++ grass/trunk/scripts/d.rast.leg/d.rast.leg	2008-05-30 20:20:41 UTC (rev 31586)
@@ -79,8 +79,13 @@
 filemapset="${mapset}"
 HISTFILEDIR=$GISDBASE/$LOCATION_NAME/$filemapset/cell_misc/
 
+# save defined font setting
+FONTCMD=`d.frame -l | grep d.font | sed 's+"++1'| sed 's+"++1'`
 d.frame -e
 
+# restore font setting
+$FONTCMD
+
 #at=bottom,top,left,right
 
 if [ -z "$GIS_OPT_NUM_OF_LINES" ]



More information about the grass-commit mailing list