[GRASS-SVN] r53957 - grass/branches/develbranch_6/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Nov 21 13:02:49 PST 2012


Author: martinl
Date: 2012-11-21 13:02:49 -0800 (Wed, 21 Nov 2012)
New Revision: 53957

Modified:
   grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix loading workspace on Windows (show map display)

Modified: grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py	2012-11-21 20:57:47 UTC (rev 53956)
+++ grass/branches/develbranch_6/gui/wxpython/lmgr/frame.py	2012-11-21 21:02:49 UTC (rev 53957)
@@ -1022,7 +1022,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'],
@@ -1034,9 +1034,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