Browse Source

wxGUI/animation: fix for https://trac.osgeo.org/grass/ticket/3153

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69818 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 years ago
parent
commit
dbde04fa3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/animation/utils.py

+ 1 - 1
gui/wxpython/animation/utils.py

@@ -245,7 +245,7 @@ def ComputeScaledRect(sourceSize, destSize):
 
 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)