_PTR(SObject) aSObject = aIter->Value();
std::vector<VISU::Prs3d_i*> aSTLList = VISU::GetPrs3dList(myModule, aSObject, true /* enable GaussPoints */);
for (int i = 0; i < aSTLList.size(); i++) {
- VISU::Prs3d_i* aPrs = aSTLList[i];
- if (!aList.contains(aPrs->GetEntry().c_str()))
- aList.append(aPrs->GetEntry().c_str());
+ if( VISU::Prs3d_i* aPrs = aSTLList[i] )
+ if (!aList.contains(aPrs->GetEntry().c_str()))
+ aList.append(aPrs->GetEntry().c_str());
}
if (aList.size() == 0) {
//QList<VISU::Prs3d_i*> aSubList = getPrsList(theStudy, aSObject);