if(Result_i* pResult = dynamic_cast<Result_i*>(GetServant(theResult).in())){
if(TPrs3d_i::IsPossible(pResult,theMeshName,theEntity,theFieldName,int(theIteration))){
aPresent = new TPrs3d_i(pResult,theAddToStudy);
- if(aPresent->Create(theMeshName,theEntity,theFieldName,int(theIteration)) == NULL)
+ if(aPresent->Create(theMeshName,theEntity,theFieldName,int(theIteration)) == NULL){
aPresent->_remove_ref();
+ aPresent = NULL;
+ }
}
}
return aPresent;