From 47ffc567941713c58c7af66db90ea01845bfcc19 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 22 Apr 2008 16:54:31 +0000 Subject: [PATCH] protect from SIGSEGV if no face elements are built on a geom face --- src/GHS3DPlugin_GHS3D.cxx | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.2