Fix to ensure determineIndex() selects the correct frame when time is at min or max
Merge pull request #1066 from noggs/master

Fix to ensure determineIndex() selects the correct frame when time is at min or max