Skip to content

Commit

Permalink
updated QgsInterval constructors to set duration and unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Samweli authored and nyalldawson committed Jan 6, 2021
1 parent 3d320a2 commit bcbf6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgstemporalnavigationobject.cpp
Expand Up @@ -195,8 +195,8 @@ void QgsTemporalNavigationObject::setFrameDuration( QgsInterval frameDuration )
mFrameDuration = frameDuration;

// sync frame duration with time step and time step unit.
mFrameTimeStep = mFrameDuration.duration();
mFrameTimeStepUnit = mFrameDuration.unit();
mFrameTimeStep = mFrameDuration.originalDuration();
mFrameTimeStepUnit = mFrameDuration.originalUnit();

mCurrentFrameNumber = findBestFrameNumberForFrameStart( oldFrame.begin() );
emit temporalFrameDurationChanged( mFrameDuration );
Expand Down

0 comments on commit bcbf6ff

Please sign in to comment.