[GRASS-SVN] r54543 - grass/trunk/gui/wxpython/mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 6 03:23:12 PST 2013


Author: martinl
Date: 2013-01-06 03:23:12 -0800 (Sun, 06 Jan 2013)
New Revision: 54543

Modified:
   grass/trunk/gui/wxpython/mapdisp/statusbar.py
Log:
wxGUI: fix progress bar range (include overlays)
       patch provided by Stepan Turek


Modified: grass/trunk/gui/wxpython/mapdisp/statusbar.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/statusbar.py	2013-01-06 09:31:34 UTC (rev 54542)
+++ grass/trunk/gui/wxpython/mapdisp/statusbar.py	2013-01-06 11:23:12 UTC (rev 54543)
@@ -1007,7 +1007,8 @@
             self.maps[map] = {'progresVal' : 0, # current progress value
                               'downloading' : [], # layers, which are downloading data
                               'rendered' : [], # already rendered layers
-                              'range' : len(map.GetListOfLayers(active = True))}
+                              'range' : len(map.GetListOfLayers(active = True)) + 
+                                        len(map.GetListOfLayers(active = True, ltype = 'overlay'))}
         else:
             if layer not in self.maps[map]['rendered']:
                 self.maps[map]['rendered'].append(layer)



More information about the grass-commit mailing list