Bläddra i källkod

wxGUI: remove non-needed wxPython3 mapdislay size hacks

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67733 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 år sedan
förälder
incheckning
212038d574
2 ändrade filer med 1 tillägg och 9 borttagningar
  1. 1 4
      gui/wxpython/core/workspace.py
  2. 0 5
      gui/wxpython/lmgr/frame.py

+ 1 - 4
gui/wxpython/core/workspace.py

@@ -8,7 +8,7 @@ Classes:
  - workspace::WriteWorkspaceFile
  - workspace::ProcessGrcFile
 
-(C) 2007-2011 by the GRASS Development Team
+(C) 2007-2016 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -20,7 +20,6 @@ import os
 
 import wx
 
-from core.globalvar import wxPython3
 from core.utils     import normalize_whitespace, _
 from core.settings  import UserSettings
 from core.gcmd      import EncodeString, GetDefaultEncoding
@@ -745,8 +744,6 @@ class WriteWorkspaceFile(object):
             
             displayPos = mapdisp.GetPosition()
             displaySize = mapdisp.GetSize()
-            if wxPython3:
-                displaySize[1] -= 32 # see related hack on line lmgr.frame.LoadWorkspaceFile()
             if mapdisp.toolbars['map'].combo.GetSelection() == 1:
                 viewmode = '3d'
             else:

+ 0 - 5
gui/wxpython/lmgr/frame.py

@@ -1288,11 +1288,6 @@ class GMFrame(wx.Frame):
                 if display['pos']:
                     mapdisp.SetPosition(display['pos'])
                 if display['size']:
-                    if globalvar.wxPython3:
-                        # Incorrect height
-                        # TODO: fix it in better way !!!
-                        # Then also remove hack in core.workspace.WriteWorkspaceFile() ...
-                        display['size'] = (display['size'][0], display['size'][1] + 32)
                     mapdisp.SetSize(display['size'])
             
             # set extent if defined