[GRASS-SVN] r65310 - grass/trunk/gui/wxpython/mapdisp
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 22 02:12:04 PDT 2015
Author: martinl
Date: 2015-05-22 02:12:04 -0700 (Fri, 22 May 2015)
New Revision: 65310
Modified:
grass/trunk/gui/wxpython/mapdisp/main.py
Log:
wxGUI: fix overlay id for standalone monitors (northarrow and legend has still issue with transparency, work in progress)
Modified: grass/trunk/gui/wxpython/mapdisp/main.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/main.py 2015-05-22 08:45:35 UTC (rev 65309)
+++ grass/trunk/gui/wxpython/mapdisp/main.py 2015-05-22 09:12:04 UTC (rev 65310)
@@ -164,9 +164,14 @@
layerType = ltype)[0]
args = {}
- if ltype in ('barscale', 'legend', 'northarrow'):
+ if ltype in ('barscale', 'rastleg', 'northarrow'):
classLayer = Overlay
- args['id'] = 1
+ if ltype == 'rastleg':
+ args['id'] = 0
+ elif ltype == 'barscale':
+ args['id'] = 1
+ else:
+ args['id'] = 2
else:
classLayer = MapLayer
args['ltype'] = ltype
More information about the grass-commit
mailing list