[GRASS-SVN] r35090 - grass/branches/releasebranch_6_4/gui/wxpython
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 28 23:46:14 EST 2008
Author: cmbarton
Date: 2008-12-28 23:46:14 -0500 (Sun, 28 Dec 2008)
New Revision: 35090
Modified:
grass/branches/releasebranch_6_4/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/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py 2008-12-29 04:44:43 UTC (rev 35089)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py 2008-12-29 04:46:14 UTC (rev 35090)
@@ -103,6 +103,7 @@
wx.Frame.__init__(self, parent=parent, id=id, size=(500, 400),
style=wx.DEFAULT_FRAME_STYLE)
+
self.SetTitle(self.baseTitle)
self.SetName("LayerManager")
@@ -1189,7 +1190,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