[GRASS-SVN] r47342 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 2 01:54:01 EDT 2011
Author: cmbarton
Date: 2011-08-01 22:54:01 -0700 (Mon, 01 Aug 2011)
New Revision: 47342
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
Log:
Fix save display to file for wxNVIZ so it saves real tif files as well as ppm files.
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2011-08-01 20:22:42 UTC (rev 47341)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2011-08-02 05:54:01 UTC (rev 47342)
@@ -1119,8 +1119,8 @@
"""
if self.toolbars['nviz']:
filetype = "PPM file (*.ppm)|*.ppm|TIF file (*.tif)|*.tif"
- ltype = [{ 'ext' : 'ppm', 'type' : -1 },
- { 'ext' : 'tif', 'type' : wx.BITMAP_TYPE_TIF }]
+ ltype = [{ 'ext' : 'ppm', 'type' : 'ppm' },
+ { 'ext' : 'tif', 'type' : 'tif' }]
else:
img = self.MapWindow.img
if not img:
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-01 20:22:42 UTC (rev 47341)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-02 05:54:01 UTC (rev 47342)
@@ -1924,7 +1924,7 @@
@param width image width
@param height image height
"""
- self._display.SaveToFile(FileName, width, height)
+ self._display.SaveToFile(FileName, width, height, FileType)
# pbuffer = wx.EmptyBitmap(max(1, self.Map.width), max(1, self.Map.height))
# dc = wx.BufferedPaintDC(self, pbuffer)
More information about the grass-commit
mailing list