[GRASS-SVN] r35088 - grass/branches/develbranch_6/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Dec 28 23:42:38 EST 2008


Author: cmbarton
Date: 2008-12-28 23:42:37 -0500 (Sun, 28 Dec 2008)
New Revision: 35088

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
Fixed another display positioning bug--because first display is "0", positioning based on display idx puts it behind the menus at the top of the Mac desktop where the display can't be grabbed and moved.

Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-12-28 18:17:47 UTC (rev 35087)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2008-12-29 04:42:37 UTC (rev 35088)
@@ -102,6 +102,7 @@
 
         wx.Frame.__init__(self, parent=parent, id=id, size=(500, 400),
                           style=wx.DEFAULT_FRAME_STYLE)
+                          
         self.SetTitle(self.baseTitle)
         self.SetName("LayerManager")
 
@@ -1177,7 +1178,7 @@
         # use default window layout
         if UserSettings.Get(group='general', key='defWindowPos', subkey='enabled') is True:
             dim = UserSettings.Get(group='general', key='defWindowPos', subkey='dim')
-            idx = 4 + self.disp_idx * 4
+            idx = 4 + (self.disp_idx +1) * 4
             try:
                 x, y = map(int, dim.split(',')[idx:idx + 2])
                 w, h = map(int, dim.split(',')[idx + 2:idx + 4])



More information about the grass-commit mailing list