Skip to content
Snippets Groups Projects
Commit 821fe510 authored by Mathieu Westphal (Kitware)'s avatar Mathieu Westphal (Kitware) :zap:
Browse files

vtkXRenderWindowInteractor: Fix a logic error with repeating timers

parent 00a7dfb2
No related branches found
No related tags found
No related merge requests found
......@@ -125,8 +125,12 @@ public:
}
else
{
timer.second.lastFire.tv_sec = ctv.tv_sec;
timer.second.lastFire.tv_usec = ctv.tv_usec;
auto it = this->LocalToTimer.find(timer.first);
if (it != this->LocalToTimer.end())
{
it->second.lastFire.tv_sec = ctv.tv_sec;
it->second.lastFire.tv_usec = ctv.tv_usec;
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment