Browse Source

wxGUI/animation: attempt to fix initialization on wxgtk3

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

+ 2 - 1
gui/wxpython/animation/mapwindow.py

@@ -122,7 +122,8 @@ class AnimationWindow(BufferedWindow):
         Debug.msg(5, "AnimationWindow.Draw()")
 
         dc.Clear()  # make sure you clear the bitmap!
-        dc.DrawBitmap(self.bitmap, x=self.x, y=self.y)
+        if self.bitmap.IsOk():
+            dc.DrawBitmap(self.bitmap, x=self.x, y=self.y)
 
     def OnSize(self, event):
         Debug.msg(5, "AnimationWindow.OnSize()")