Procházet zdrojové kódy

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á před 11 roky
rodič
revize
c840ed30c5
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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()