[GRASS-SVN] r35085 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 28 13:01:28 EST 2008


Author: cmbarton
Date: 2008-12-28 13:01:28 -0500 (Sun, 28 Dec 2008)
New Revision: 35085

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Fix bad placement of initial display window on Mac (was positioned behind top menus and could not be moved).

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2008-12-28 17:30:41 UTC (rev 35084)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py	2008-12-28 18:01:28 UTC (rev 35085)
@@ -97,7 +97,7 @@
         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,



More information about the grass-commit mailing list