Skip to content
Permalink
Browse files

updated QgsInterval constructors to set duration and unit

  • Loading branch information
Samweli authored and nyalldawson committed Jan 6, 2021
1 parent 3d320a2 commit bcbf6ff1cefabbe695a055f767d055f44a0c8332
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgstemporalnavigationobject.cpp
@@ -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 );

0 comments on commit bcbf6ff

Please sign in to comment.
You can’t perform that action at this time.