Skip to content
Snippets Groups Projects
Commit 8c440dae authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix crasher

parent 49b60399
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ void PViewDataList::_stat(std::vector<double> &D, std::vector<char> &C, int nb)
for(unsigned int i = 0; i < D.size(); i += nb){
double beg = D[i + nb - 1];
double end;
if(i > D.size() - 2 * nb)
if(i + 2 * nb > D.size())
end = C.size();
else
end = D[i + nb + nb - 1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment