[GRASS-SVN] r60689 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 3 06:36:37 PDT 2014
Author: annakrat
Date: 2014-06-03 06:36:37 -0700 (Tue, 03 Jun 2014)
New Revision: 60689
Modified:
grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI: fix #2026 on Windows
Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py 2014-06-03 11:58:58 UTC (rev 60688)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py 2014-06-03 13:36:37 UTC (rev 60689)
@@ -463,11 +463,11 @@
self._updateLabel()
self.init = True
parent = self.GetParent()
- newExtent = wx.ClientDC(parent).GetTextExtent(self.GetLabel())
+ newExtent = wx.ClientDC(parent).GetMultiLineTextExtent(self.GetLabel())
# when starting, width is very small and height is big which creates very high windows
if newExtent[0] < newExtent[1]:
return (0, 0)
- return newExtent
+ return newExtent[:2]
def OnSize(self, event):
self._updateLabel()
More information about the grass-commit
mailing list