mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Early exit if no frames are present
This commit is contained in:
parent
3086ab10bc
commit
33d5b9b63b
@ -592,6 +592,8 @@ bool caf::Viewer::isAnimationActive()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void caf::Viewer::slotSetCurrentFrame(int frameIndex)
|
||||
{
|
||||
if (m_frameScenes.size() == 0) return;
|
||||
|
||||
int clampedFrameIndex = frameIndex;
|
||||
|
||||
if (static_cast<size_t>(frameIndex) >= m_frameScenes.size())
|
||||
|
Loading…
Reference in New Issue
Block a user