[GRASS-SVN] r73419 - grass/branches/releasebranch_7_4/gui/wxpython/psmap
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 26 13:40:01 PDT 2018
Author: annakrat
Date: 2018-09-26 13:40:01 -0700 (Wed, 26 Sep 2018)
New Revision: 73419
Modified:
grass/branches/releasebranch_7_4/gui/wxpython/psmap/utils.py
Log:
wxGUI: fix for wxPython 4, see #3621 (merge from trunk, r73404)
Modified: grass/branches/releasebranch_7_4/gui/wxpython/psmap/utils.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/psmap/utils.py 2018-09-26 20:39:24 UTC (rev 73418)
+++ grass/branches/releasebranch_7_4/gui/wxpython/psmap/utils.py 2018-09-26 20:40:01 UTC (rev 73419)
@@ -175,9 +175,9 @@
return str(rgb.Red()) + ':' + str(rgb.Green()) + ':' + str(rgb.Blue())
# transform a GRASS named color or an r:g:b string into a wx.Colour tuple
else:
- color = (grass.parse_color(rgb)[0] * 255,
- grass.parse_color(rgb)[1] * 255,
- grass.parse_color(rgb)[2] * 255)
+ color = (int(grass.parse_color(rgb)[0] * 255),
+ int(grass.parse_color(rgb)[1] * 255),
+ int(grass.parse_color(rgb)[2] * 255))
color = wx.Colour(*color)
if color.IsOk():
return color
More information about the grass-commit
mailing list