From: eap Date: Tue, 22 Apr 2008 16:54:31 +0000 (+0000) Subject: protect from SIGSEGV if no face elements are built on a geom face X-Git-Tag: V4_1_2rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47ffc567941713c58c7af66db90ea01845bfcc19;p=plugins%2Fghs3dplugin.git protect from SIGSEGV if no face elements are built on a geom face --- diff --git a/src/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin_GHS3D.cxx index c62bad9..eda1b51 100644 --- a/src/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin_GHS3D.cxx @@ -268,6 +268,7 @@ static bool writeFaces (ofstream & theFile, aShape = tabShape[i]; shapeID = tabID[i]; theSubMesh = theMesh->MeshElements( aShape ); + if ( !theSubMesh ) continue; itOnSubMesh = theSubMesh->GetElements(); while ( itOnSubMesh->more() ) { aFace = itOnSubMesh->next();