Browse Source

wxGUI: fix loading workspace on Windows (show map display)
(merge https://trac.osgeo.org/grass/changeset/53957 from devbr6)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53958 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 12 năm trước cách đây
mục cha
commit
bcd99e19a4
1 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 5 4
      gui/wxpython/lmgr/frame.py

+ 5 - 4
gui/wxpython/lmgr/frame.py

@@ -1126,7 +1126,7 @@ class GMFrame(wx.Frame):
             
         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 @@ class GMFrame(wx.Frame):
                 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):