From: asl Date: Fri, 20 Dec 2013 11:06:10 +0000 (+0000) Subject: bug #268: fatal error in zone creation X-Git-Tag: BR_hydro_v_0_6~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=659759a6eba83ba00b7a755f2ef13cc32e09f66c;p=modules%2Fhydro.git bug #268: fatal error in zone creation --- diff --git a/src/HYDROData/HYDROData_ImmersibleZone.cxx b/src/HYDROData/HYDROData_ImmersibleZone.cxx index 4561fbf1..028e6666 100644 --- a/src/HYDROData/HYDROData_ImmersibleZone.cxx +++ b/src/HYDROData/HYDROData_ImmersibleZone.cxx @@ -170,6 +170,10 @@ TopoDS_Shape HYDROData_ImmersibleZone::generateTopShape( const Handle(HYDROData_ } } } + + if( aResultFace.IsNull() ) + return aResultFace; + BRepCheck_Analyzer anAnalyzer( aResultFace ); if( anAnalyzer.IsValid() && aResultFace.ShapeType()==TopAbs_FACE ) return aResultFace; diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 27de521e..bc4dc6cd 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -1488,6 +1488,10 @@ file cannot be correctly imported for a Bathymetry definition. EDIT_IMMERSIBLE_ZONE Edit immersible zone + + ZONE_OBJECT_CANNOT_BE_CREATED + Zone object can not be created +