Преглед изворни кода

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 година
родитељ
комит
dbde04fa3b
1 измењених фајлова са 1 додато и 1 уклоњено
  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)