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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Sep 24 05:36:35 PDT 2015


Author: annakrat
Date: 2015-09-24 05:36:35 -0700 (Thu, 24 Sep 2015)
New Revision: 66320

Modified:
   grass/trunk/gui/wxpython/animation/mapwindow.py
Log:
wxGUI/animation: attempt to fix initialization on wxgtk3

Modified: grass/trunk/gui/wxpython/animation/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/animation/mapwindow.py	2015-09-24 07:22:57 UTC (rev 66319)
+++ grass/trunk/gui/wxpython/animation/mapwindow.py	2015-09-24 12:36:35 UTC (rev 66320)
@@ -122,7 +122,8 @@
         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()")



More information about the grass-commit mailing list