Skip to content

Commit

Permalink
Fix wrong slider position
Browse files Browse the repository at this point in the history
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 970bcb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgstemporalcontrollerwidget.cpp
Expand Up @@ -301,6 +301,7 @@ void QgsTemporalControllerWidget::updateFrameDuration()
mSlider->setValue( mNavigationObject->currentFrameNumber() );
}
mSlider->setRange( 0, mNavigationObject->totalFrameCount() - 1 );
mSlider->setValue( mNavigationObject->currentFrameNumber() );
}

void QgsTemporalControllerWidget::setWidgetStateFromProject()
Expand Down

0 comments on commit 970bcb0

Please sign in to comment.