[GRASS-SVN] r60051 - grass/branches/releasebranch_7_0/gui/wxpython/timeline
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri May 2 16:47:52 PDT 2014
Author: annakrat
Date: 2014-05-02 16:47:52 -0700 (Fri, 02 May 2014)
New Revision: 60051
Modified:
grass/branches/releasebranch_7_0/gui/wxpython/timeline/frame.py
Log:
wxGUI/timeline: fix case when there are no registered datasets (merge from trunk, r60050)
Modified: grass/branches/releasebranch_7_0/gui/wxpython/timeline/frame.py
===================================================================
--- grass/branches/releasebranch_7_0/gui/wxpython/timeline/frame.py 2014-05-02 23:45:53 UTC (rev 60050)
+++ grass/branches/releasebranch_7_0/gui/wxpython/timeline/frame.py 2014-05-02 23:47:52 UTC (rev 60051)
@@ -396,7 +396,8 @@
for etype, maps in etypesDict.iteritems()]
for mapset, etypesDict in tDict.iteritems()]
# flatten this list
- allDatasets = reduce(lambda x, y: x + y, reduce(lambda x, y: x + y, allDatasets))
+ if allDatasets:
+ allDatasets = reduce(lambda x, y: x + y, reduce(lambda x, y: x + y, allDatasets))
for dataset in datasets:
errorMsg = _("Space time dataset <%s> not found.") % dataset
More information about the grass-commit
mailing list