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

fix crash when trying to access incompatible external data

parent 4967a834
No related branches found
No related tags found
No related merge requests found
......@@ -697,6 +697,7 @@ bool PViewDataGModel::skipElement(int step, int ent, int ele, bool checkVisibili
stepData<double> *sd = _steps[step];
if(!_steps[step]->getNumData()) return true;
MElement *e = _getElement(step, ent, ele);
if(!e) return true;
if(checkVisibility && !e->getVisibility()) return true;
if(_type == NodeData){
for(int i = 0; i < getNumNodes(step, ent, ele); i++)
......
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