[GRASS-SVN] r56360 - grass/trunk/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 22 08:45:15 PDT 2013
Author: annakrat
Date: 2013-05-22 08:45:15 -0700 (Wed, 22 May 2013)
New Revision: 56360
Modified:
grass/trunk/gui/wxpython/psmap/dialogs.py
Log:
wxGUI/composer: fix font issue on Windows
Modified: grass/trunk/gui/wxpython/psmap/dialogs.py
===================================================================
--- grass/trunk/gui/wxpython/psmap/dialogs.py 2013-05-22 15:41:50 UTC (rev 56359)
+++ grass/trunk/gui/wxpython/psmap/dialogs.py 2013-05-22 15:45:15 UTC (rev 56360)
@@ -3116,9 +3116,8 @@
self.vLegendDict['font'] = self.panelVector.font['fontCtrl'].GetStringSelection()
self.vLegendDict['fontsize'] = self.panelVector.font['fontSizeCtrl'].GetValue()
dc = wx.ClientDC(self)
- font = dc.GetFont()
- dc.SetFont(wx.Font(pointSize = self.vLegendDict['fontsize'], family = font.GetFamily(),
- style = font.GetStyle(), weight = wx.FONTWEIGHT_NORMAL))
+ dc.SetFont(wx.Font(pointSize = self.vLegendDict['fontsize'], family = wx.FONTFAMILY_DEFAULT,
+ style = wx.FONTSTYLE_NORMAL, weight = wx.FONTWEIGHT_NORMAL))
#size
width = self.unitConv.convert(value = float(self.panelVector.widthCtrl.GetValue()),
fromUnit = currUnit, toUnit = 'inch')
More information about the grass-commit
mailing list