Commit fa73a1d0 authored by Joachim Pouderoux's avatar Joachim Pouderoux Committed by Kitware Robot

Merge topic 'FixFlipBookWarning'

f54fa340 Fix FlipBook plugin warning
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !3910
parents 4b877d37 f54fa340
......@@ -270,11 +270,11 @@ void pqFlipBookReaction::updateVisibility()
{
return;
}
for (size_t i = 0; i < this->VisibleRepresentations.size(); i++)
int nbReprs = this->VisibleRepresentations.size();
for (int i = 0; i < nbReprs; i++)
{
this->VisibleRepresentations[i]->setVisible(i == this->VisibilityIndex);
}
this->VisibilityIndex = (this->VisibilityIndex + 1) % this->VisibleRepresentations.size();
this->VisibilityIndex = (this->VisibilityIndex + 1) % nbReprs;
this->View->render();
}
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