[GRASS-SVN] r53958 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 21 13:08:01 PST 2012
Author: martinl
Date: 2012-11-21 13:08:00 -0800 (Wed, 21 Nov 2012)
New Revision: 53958
Modified:
grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix loading workspace on Windows (show map display)
(merge r53957 from devbr6)
Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-21 21:02:49 UTC (rev 53957)
+++ grass/trunk/gui/wxpython/lmgr/frame.py 2012-11-21 21:08:00 UTC (rev 53958)
@@ -1126,7 +1126,7 @@
for idx, mdisp in enumerate(mapdisplay):
mdisp.MapWindow2D.UpdateMap()
- #nviz
+ # nviz
if gxwXml.displays[idx]['viewMode'] == '3d':
mdisp.AddNviz()
self.nviz.UpdateState(view = gxwXml.nviz_state['view'],
@@ -1138,9 +1138,10 @@
for page in ('view', 'light', 'fringe', 'constant', 'cplane'):
self.nviz.UpdatePage(page)
self.nviz.UpdateSettings()
- mapdisp.toolbars['map'].combo.SetSelection(1)
-
-
+ mdisp.toolbars['map'].combo.SetSelection(1)
+
+ mdisp.Show() # show mapdisplay
+
return True
def OnWorkspaceLoadGrcFile(self, event):
More information about the grass-commit
mailing list