Explorar o código

wxGUI/animation: fix slider label for relative point data

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@60786 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová %!s(int64=11) %!d(string=hai) anos
pai
achega
b6b10a3222
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/animation/temporal_manager.py

+ 1 - 1
gui/wxpython/animation/temporal_manager.py

@@ -213,7 +213,7 @@ class TemporalManager(object):
                           if end is not None else None, unit) for (st, end, unit) in timestamps]
         else:
             # ('15', '16', u'years'),
-            timestamps = [(str(st), str(end), unit) for st, end, unit in timestamps]
+            timestamps = [(str(st), end if end is None else str(end), unit) for st, end, unit in timestamps]
         return timestamps, mapDict
 
     def _getLabelsAndMaps(self, timeseries):