Skip to content
Permalink
Browse files

use std::floor instead of std::ceil in calculating total count of frames

  • Loading branch information
Samweli authored and nyalldawson committed May 2, 2020
1 parent 89fe634 commit ca80f4519fed68f313e8787ae11e4f7f8f057bed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgstemporalnavigationobject.cpp
@@ -191,7 +191,7 @@ void QgsTemporalNavigationObject::skipToEnd()
long long QgsTemporalNavigationObject::totalFrameCount()
{
QgsInterval totalAnimationLength = mTemporalExtents.end() - mTemporalExtents.begin();
return std::ceil( totalAnimationLength.seconds() / mFrameDuration.seconds() ) + 1;
return std::floor( totalAnimationLength.seconds() / mFrameDuration.seconds() ) + 1;
}

void QgsTemporalNavigationObject::setAnimationState( AnimationState mode )

0 comments on commit ca80f45

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