[GRASS-SVN] r59011 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 12 12:54:23 PST 2014
Author: annakrat
Date: 2014-02-12 12:54:22 -0800 (Wed, 12 Feb 2014)
New Revision: 59011
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
Log:
wxGUI/d.mon: fix r59010
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2014-02-12 20:27:50 UTC (rev 59010)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2014-02-12 20:54:22 UTC (rev 59011)
@@ -103,7 +103,7 @@
lines = fd.readlines()
fd.close()
# detect d.out.file, delete the line from the cmd file and export graphics
- if lines[-1].startswith('d.out.file'):
+ if len(lines) > 0 and lines[-1].startswith('d.out.file'):
dOutFileCmd = lines[-1].strip()
fd = open(self.cmdfile, 'w')
fd.writelines(lines[:-1])
More information about the grass-commit
mailing list