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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Oct 3 18:50:06 PDT 2013


Author: annakrat
Date: 2013-10-03 18:50:06 -0700 (Thu, 03 Oct 2013)
New Revision: 57931

Modified:
   grass/trunk/gui/wxpython/animation/mapwindow.py
Log:
wxGUI/animation: automatically reload after adding animation

Modified: grass/trunk/gui/wxpython/animation/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/animation/mapwindow.py	2013-10-03 23:10:03 UTC (rev 57930)
+++ grass/trunk/gui/wxpython/animation/mapwindow.py	2013-10-04 01:50:06 UTC (rev 57931)
@@ -359,7 +359,9 @@
         count = 0
         maxLength = 0
         for raster, name in zip(rasters, names):
-            if not(name in self.bitmapPool and force is False):
+            if not force and name in self.bitmapPool and \
+               self.bitmapPool[name].GetSize() == (self.imageWidth, self.imageHeight):
+                continue
                 count += 1
                 if len(raster) > maxLength:
                     maxLength = len(raster)
@@ -400,7 +402,8 @@
         for mapname, name in zip(maps, names):
             count += 1
 
-            if name in self.bitmapPool and force is False:
+            if not force and name in self.bitmapPool and \
+               self.bitmapPool[name].GetSize() == (self.imageWidth, self.imageHeight):
                 continue
 
             # Queue object for interprocess communication



More information about the grass-commit mailing list