Explorar o código

wxGUI/animation: prevent drawing empty bitmap which causes problems with wxGTK3

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66375 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=9) %!d(string=hai) anos
pai
achega
dcaebe8714
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/animation/mapwindow.py

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

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