瀏覽代碼

Fix bug that puts the initial display window behind the top menus on a Mac and makes it impossible to grab and move.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@35086 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 16 年之前
父節點
當前提交
3181207cdc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/wxgui_utils.py

+ 1 - 1
gui/wxpython/gui_modules/wxgui_utils.py

@@ -97,7 +97,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
         self.reorder = False        # layer change requires a reordering
 
         # init associated map display
-        pos = wx.Point(self.disp_idx * 25, self.disp_idx * 25)
+        pos = wx.Point((self.disp_idx + 1) * 25, (self.disp_idx + 1) * 25)
         self.mapdisplay = mapdisp.MapFrame(self,
                                            id=wx.ID_ANY, pos=pos,
                                            size=globalvar.MAP_WINDOW_SIZE,