Skip to content
Permalink
Browse files

updated cumulative range logic in temporal controller

  • Loading branch information
Samweli authored and nyalldawson committed May 10, 2020
1 parent f3f04a9 commit 65d5c14f7a162d34673fa96a4b998a809a175f7f
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/core/qgstemporalnavigationobject.cpp
@@ -93,13 +93,15 @@ QgsDateTimeRange QgsTemporalNavigationObject::dateTimeRangeForFrameNumber( long
const QDateTime begin = start.addSecs( frame * mFrameDuration.seconds() );
const QDateTime end = start.addSecs( nextFrame * mFrameDuration.seconds() );

QDateTime frameStart = begin;

if ( mCumulativeTemporalRange )
return QgsDateTimeRange( start, begin, true, false );
frameStart = start;

if ( end <= mTemporalExtents.end() )
return QgsDateTimeRange( begin, end, true, false );
return QgsDateTimeRange( frameStart, end, true, false );

return QgsDateTimeRange( begin, mTemporalExtents.end(), true, false );
return QgsDateTimeRange( frameStart, mTemporalExtents.end(), true, false );
}

void QgsTemporalNavigationObject::setTemporalExtents( const QgsDateTimeRange &temporalExtents )

0 comments on commit 65d5c14

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