[GRASS-SVN] r66376 - grass/branches/releasebranch_7_0/gui/wxpython/animation
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 28 14:55:06 PDT 2015
Author: annakrat
Date: 2015-09-28 14:55:06 -0700 (Mon, 28 Sep 2015)
New Revision: 66376
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/animation/mapwindow.py
Log:
wxGUI/animation: prevent drawing empty bitmap which causes problems with wxGTK3 (merge from trunk, r66375)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/animation/mapwindow.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/animation/mapwindow.py 2015-09-28 21:48:58 UTC (rev 66375)
+++ grass/branches/releasebranch_7_0/gui/wxpython/animation/mapwindow.py 2015-09-28 21:55:06 UTC (rev 66376)
@@ -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.GetWidth() > 1:
+ 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