[GRASS-SVN] r69818 - grass/trunk/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 13 16:01:02 PST 2016


Author: annakrat
Date: 2016-11-13 16:01:02 -0800 (Sun, 13 Nov 2016)
New Revision: 69818

Modified:
   grass/trunk/gui/wxpython/animation/utils.py
Log:
wxGUI/animation: fix for #3153

Modified: grass/trunk/gui/wxpython/animation/utils.py
===================================================================
--- grass/trunk/gui/wxpython/animation/utils.py	2016-11-13 23:40:02 UTC (rev 69817)
+++ grass/trunk/gui/wxpython/animation/utils.py	2016-11-14 00:01:02 UTC (rev 69818)
@@ -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