Verified Commit b130f1be authored by Mohcine Chraibi's avatar Mohcine Chraibi
Browse files

Fix SegFault when FrameElements is empty

parent d2244215
Pipeline #21070 passed with stages
in 14 seconds
......@@ -175,7 +175,12 @@ void TimerCallback::Execute(vtkObject *caller, unsigned long eventId,
minFrame = frame->GetFrameElements()[0]->GetMinFrame();
auto FrameElements = frame->GetFrameElements();
minFrame = frame->GetFrameElements()[0]->GetMinFrame();
minFrame = 0;
frameNumber += minFrame;
if(SystemSettings::getShowTrajectories()) {
const std::vector<FrameElement *> &elements=frame->GetFrameElements();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment