[GRASS-SVN] r35764 - grass/branches/releasebranch_6_4/gui/wxpython

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 4 18:15:53 EST 2009


Author: martinl
Date: 2009-02-04 18:15:53 -0500 (Wed, 04 Feb 2009)
New Revision: 35764

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
Log:
wxGUI: fix #476


Modified: grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-02-04 23:06:08 UTC (rev 35763)
+++ grass/branches/releasebranch_6_4/gui/wxpython/wxgui.py	2009-02-04 23:15:53 UTC (rev 35764)
@@ -1220,20 +1220,10 @@
         self.curr_page.Layout()
         self.curr_page.maptree.Layout()
 
-        #        self._auimgr.SetManagedWindow(self.curr_page.maptree.testframe)
-        #
-        #        self._auimgr.AddPane(self.curr_page.maptree.testframe,
-        #                             wx.aui.AuiPaneInfo().Right().
-        #                             BestSize((-1,-1)).
-        #                             CloseButton(True).MinimizeButton(True).
-        #                             DestroyOnClose(True).Layer(2))
-        #
-        #        self._auimgr.Update()
-
         # 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 +1) * 4
+            idx = 4 + self.disp_idx * 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