[GRASS-SVN] r66375 - grass/trunk/gui/wxpython/animation

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Sep 28 14:48:58 PDT 2015


Author: annakrat
Date: 2015-09-28 14:48:58 -0700 (Mon, 28 Sep 2015)
New Revision: 66375

Modified:
   grass/trunk/gui/wxpython/animation/mapwindow.py
Log:
wxGUI/animation: prevent drawing empty bitmap which causes problems with wxGTK3

Modified: grass/trunk/gui/wxpython/animation/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/animation/mapwindow.py	2015-09-28 16:20:58 UTC (rev 66374)
+++ grass/trunk/gui/wxpython/animation/mapwindow.py	2015-09-28 21:48:58 UTC (rev 66375)
@@ -122,7 +122,7 @@
         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):



More information about the grass-commit mailing list