diff options
Diffstat (limited to 'durationSlider.go')
| -rw-r--r-- | durationSlider.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/durationSlider.go b/durationSlider.go index a616733..03eb665 100644 --- a/durationSlider.go +++ b/durationSlider.go @@ -43,14 +43,14 @@ func (n *Duration) Set(d time.Duration) { step = timeRange / 1000 if step == 0 { log.Log(GADGETS, "duration.Set() division by step == 0", n.Low, n.High, timeRange, step) - n.s.SetValue(0) + n.s.SetInt(0) return } offset = d - n.Low i := int(offset / step) log.Log(GADGETS, "duration.Set() =", n.Low, n.High, d, "i =", i) // n.s.I = i - n.s.SetValue(i) + n.s.SetInt(i) n.s.Custom() } |
