[GRASS-SVN] r54075 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 27 03:29:14 PST 2012


Author: annakrat
Date: 2012-11-27 03:29:13 -0800 (Tue, 27 Nov 2012)
New Revision: 54075

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: launch animation with maps only if more than 1 map is selected

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2012-11-27 10:58:15 UTC (rev 54074)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2012-11-27 11:29:13 UTC (rev 54075)
@@ -1401,13 +1401,13 @@
         frame.CentreOnScreen()
         frame.Show()
 
-        rasters = []
         tree = self.GetLayerTree()
         if tree:
+            rasters = []
             for layer in tree.GetSelectedLayers(checkedOnly = False):
                 if tree.GetLayerInfo(layer, key = 'type') == 'raster':
                     rasters.append(tree.GetLayerInfo(layer, key = 'maplayer').GetName())
-            if rasters:
+            if len(rasters) >= 2:
                 frame.SetAnimations(raster = [rasters, None, None, None])
 
 



More information about the grass-commit mailing list