Fix for Python 3.10

Fixes https://github.com/OSGeo/grass/issues/2045

(cherry picked from commit da4dbf1110)
This commit is contained in:
Anna Petrasova
2022-01-08 22:30:04 -05:00
committed by Scott Talbert
parent 587f3418f2
commit 006110366c

View File

@@ -6426,7 +6426,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
rf, gf, bf = 0, 0, 0
for y in range(rect.y, rect.y + rect.height):
currCol = (r1 + rf, g1 + gf, b1 + bf)
currCol = (int(r1 + rf), int(g1 + gf), int(b1 + bf))
dc.SetBrush(wx.Brush(currCol, wx.BRUSHSTYLE_SOLID))
dc.DrawRectangle(rect.x, y, rect.width, 1)
rf = rf + rstep
@@ -6533,7 +6533,7 @@ class CustomTreeCtrl(wx.ScrolledWindow):
dc.SetPen(wx.TRANSPARENT_PEN)
for y in range(filRect.y, filRect.y + filRect.height):
currCol = (r1 + rf, g1 + gf, b1 + bf)
currCol = (int(r1 + rf), int(g1 + gf), int(b1 + bf))
dc.SetBrush(wx.Brush(currCol, wx.BRUSHSTYLE_SOLID))
dc.DrawRectangle(filRect.x, y, filRect.width, 1)
rf = rf + rstep