X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_ResultConstruction.cpp;h=11cf883cd60908c0915e0fbf373948d640b0cf24;hb=b7298edf56ef8cbc903059859280cbce91c08c70;hp=41e1a9b166a43771fac03ba55775eae2b17f9c5c;hpb=5dfebcc3a72f75f043de9880419b39f073af6819;p=modules%2Fshaper.git diff --git a/src/Model/Model_ResultConstruction.cpp b/src/Model/Model_ResultConstruction.cpp index 41e1a9b16..11cf883cd 100644 --- a/src/Model/Model_ResultConstruction.cpp +++ b/src/Model/Model_ResultConstruction.cpp @@ -68,7 +68,7 @@ int Model_ResultConstruction::facesNum() std::list >::iterator aFIter = aFaces.begin(); for(; aFIter != aFaces.end(); aFIter++) { std::shared_ptr aFace(new GeomAPI_Face(*aFIter)); - if (aFace.get()) + if (aFace.get() && !aFace->isNull()) myFaces.push_back(aFace); } }