[GRASS-SVN] r67737 - grass/branches/releasebranch_7_0/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 6 04:26:46 PST 2016
Author: martinl
Date: 2016-02-06 04:26:46 -0800 (Sat, 06 Feb 2016)
New Revision: 67737
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
Log:
wxGUI: workaround for invalid map display height (only relrb70 issue)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py 2016-02-06 12:02:51 UTC (rev 67736)
+++ grass/branches/releasebranch_7_0/gui/wxpython/lmgr/frame.py 2016-02-06 12:26:46 UTC (rev 67737)
@@ -1818,6 +1818,10 @@
x, y = map(int, dim.split(',')[idx:idx + 2])
w, h = map(int, dim.split(',')[idx + 2:idx + 4])
self.GetMapDisplay().SetPosition((x, y))
+ # map display is sized with different height, this
+ # extra call "solves" the issue, strangely trunk
+ # doens't have this issue (TODO: investigate why)
+ self.GetMapDisplay().SetSize((w, h-1))
self.GetMapDisplay().SetSize((w, h))
except:
pass
More information about the grass-commit
mailing list