[GRASS-SVN] r69819 - grass/branches/releasebranch_7_2/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Nov 13 16:02:34 PST 2016
Author: annakrat
Date: 2016-11-13 16:02:34 -0800 (Sun, 13 Nov 2016)
New Revision: 69819
Modified:
grass/branches/releasebranch_7_2/gui/wxpython/animation/utils.py
Log:
wxGUI/animation: fix for #3153 (merge from trunk, r69818)
Modified: grass/branches/releasebranch_7_2/gui/wxpython/animation/utils.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/animation/utils.py 2016-11-14 00:01:02 UTC (rev 69818)
+++ grass/branches/releasebranch_7_2/gui/wxpython/animation/utils.py 2016-11-14 00:02:34 UTC (rev 69819)
@@ -245,7 +245,7 @@
def RenderText(text, font, bgcolor, fgcolor):
"""Renderes text with given font to bitmap."""
- dc = wx.MemoryDC()
+ dc = wx.MemoryDC(wx.EmptyBitmap(20, 20))
dc.SetFont(font)
w, h = dc.GetTextExtent(text)
bmp = wx.EmptyBitmap(w + 2, h + 2)
More information about the grass-commit
mailing list