Prechádzať zdrojové kódy

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á 9 rokov pred
rodič
commit
dcaebe8714
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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):