Browse Source

wxGUI/animation: fix related to the https://trac.osgeo.org/grass/changeset/58190

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58194 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 years ago
parent
commit
c840ed30c5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/wxpython/animation/frame.py

+ 2 - 0
gui/wxpython/animation/frame.py

@@ -405,6 +405,7 @@ class SimpleAnimationSlider(AnimationSliderBase):
         self.framesCount = count
         if self.framesCount > 1:
             self.slider.SetRange(0, self.framesCount - 1)
+            self.EnableSlider(True)
         else:
             self.EnableSlider(False)
         self._setLabel()
@@ -467,6 +468,7 @@ class TimeAnimationSlider(AnimationSliderBase):
         self.framesCount = len(timeLabels)
         if self.framesCount > 1:
             self.slider.SetRange(0, self.framesCount - 1)
+            self.EnableSlider(True)
         else:
             self.EnableSlider(False)
         self._setLabel()