[GRASS-SVN] r47839 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Aug 22 15:04:51 EDT 2011
Author: annakrat
Date: 2011-08-22 12:04:51 -0700 (Mon, 22 Aug 2011)
New Revision: 47839
Modified:
grass/trunk/gui/wxpython/gui_modules/render.py
Log:
wxNviz: fix resolution
Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py 2011-08-22 18:22:48 UTC (rev 47838)
+++ grass/trunk/gui/wxpython/gui_modules/render.py 2011-08-22 19:04:51 UTC (rev 47839)
@@ -705,8 +705,7 @@
if windres:
compRegion = self.GetRegion()
region = copy.copy(self.region)
- for key in ('nsres', 'ewres',
- 'rows', 'cols', 'cells'):
+ for key in ('nsres', 'ewres', 'cells'):
region[key] = compRegion[key]
else:
# adjust region settings to match monitor
@@ -740,10 +739,14 @@
(region['nsres'])
continue
elif key == "cols":
+ if windres:
+ continue
grass_region += 'cols: %d; ' % \
region['cols']
continue
elif key == "rows":
+ if windres:
+ continue
grass_region += 'rows: %d; ' % \
region['rows']
continue
More information about the grass-commit
mailing list