[GRASS-SVN] r63429 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 7 11:11:31 PST 2014
Author: martinl
Date: 2014-12-07 11:11:31 -0800 (Sun, 07 Dec 2014)
New Revision: 63429
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
Log:
wxGUI: cosmetics in DMonMap (self.mapfile has already extension defined)
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-07 17:28:09 UTC (rev 63428)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2014-12-07 19:11:31 UTC (rev 63429)
@@ -79,7 +79,10 @@
self.maskfileCmd = os.path.splitext(mapfile)[0] + '.pgm'
# generated file for g.pnmcomp output for rendering the map
- self.mapfile = monFile['map'] + '.ppm'
+ self.mapfile = monFile['map']
+ if os.path.splitext(self.mapfile)[1] != '.ppm':
+ self.mapfile += '.ppm'
+
# signal sent when d.out.file/d.to.rast appears in cmd file, attribute is cmd
self.saveToFile = Signal('DMonMap.saveToFile')
self.dToRast = Signal('DMonMap.dToRast')
More information about the grass-commit
mailing list