[GRASS-SVN] r61379 - grass/branches/releasebranch_7_0/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 23 12:11:04 PDT 2014
Author: annakrat
Date: 2014-07-23 12:11:04 -0700 (Wed, 23 Jul 2014)
New Revision: 61379
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/mapdisp/frame.py
Log:
wxGUI: fix showing and hiding legend which has histogram (merge from trunk, r61378)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/mapdisp/frame.py 2014-07-23 19:09:13 UTC (rev 61378)
+++ grass/branches/releasebranch_7_0/gui/wxpython/mapdisp/frame.py 2014-07-23 19:11:04 UTC (rev 61379)
@@ -1071,7 +1071,10 @@
# replace map
for i, legendParam in enumerate(self.legend.cmd[1:]):
idx = i + 1
- param, val = legendParam.split('=')
+ param_val = legendParam.split('=')
+ if len(param_val) != 2:
+ continue
+ param, val = param_val
if param == 'rast':
self.legend.cmd[idx] = 'rast={rast}'.format(rast=layer.maplayer.name)
isMap = True
More information about the grass-commit
mailing list