Skip to content
Permalink
Browse files

Fix wrong slider position

If you change the frame unit in the widget, the slider did not stay
on the right position, because the value was updated, but the range
of the slider was (apparently) not.
Not sure why it was't done in the code a few lines earlier.
  • Loading branch information
rduivenvoorde authored and nyalldawson committed Feb 12, 2021
1 parent 73efd1a commit 970bcb057396bf860f9fb12710ef03c485a143fd
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgstemporalcontrollerwidget.cpp
@@ -301,6 +301,7 @@ void QgsTemporalControllerWidget::updateFrameDuration()
mSlider->setValue( mNavigationObject->currentFrameNumber() );
}
mSlider->setRange( 0, mNavigationObject->totalFrameCount() - 1 );
mSlider->setValue( mNavigationObject->currentFrameNumber() );
}

void QgsTemporalControllerWidget::setWidgetStateFromProject()

0 comments on commit 970bcb0

Please sign in to comment.