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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Feb 4 18:19:10 EST 2009


Author: martinl
Date: 2009-02-04 18:19:10 -0500 (Wed, 04 Feb 2009)
New Revision: 35766

Modified:
   grass/branches/develbranch_6/gui/wxpython/wxgui.py
Log:
wxGUI: fix #476
      (merge from relbr64, r35764)


Modified: grass/branches/develbranch_6/gui/wxpython/wxgui.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-02-04 23:17:35 UTC (rev 35765)
+++ grass/branches/develbranch_6/gui/wxpython/wxgui.py	2009-02-04 23:19:10 UTC (rev 35766)
@@ -1212,20 +1212,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