[GRASS-SVN] r33173 - grass/branches/develbranch_6/scripts/d.out.file
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Aug 30 21:58:51 EDT 2008
Author: hamish
Date: 2008-08-30 21:58:50 -0400 (Sat, 30 Aug 2008)
New Revision: 33173
Modified:
grass/branches/develbranch_6/scripts/d.out.file/d.out.file
Log:
bugfix: skip d.erase when user wants transparent background. flood filling was negating the effect
Modified: grass/branches/develbranch_6/scripts/d.out.file/d.out.file
===================================================================
--- grass/branches/develbranch_6/scripts/d.out.file/d.out.file 2008-08-30 18:12:48 UTC (rev 33172)
+++ grass/branches/develbranch_6/scripts/d.out.file/d.out.file 2008-08-31 01:58:50 UTC (rev 33173)
@@ -315,8 +315,14 @@
################################
#export display to PNG/PS driver
-dsave=`d.save -a`
+if [ "$GIS_FLAG_T" -eq 1 ] ; then
+ # skip flood filling of background
+ dsave=`d.save -a | grep -v '^d.erase'`
+else
+ dsave=`d.save -a`
+fi
+
d.mon start=$GRAPHICS_DRIVER --quiet
eval "$dsave"
d.mon stop=$GRAPHICS_DRIVER --quiet
More information about the grass-commit
mailing list