]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
bug #268: fatal error in zone creation
authorasl <asl@opencascade.com>
Fri, 20 Dec 2013 11:06:10 +0000 (11:06 +0000)
committerasl <asl@opencascade.com>
Fri, 20 Dec 2013 11:06:10 +0000 (11:06 +0000)
src/HYDROData/HYDROData_ImmersibleZone.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index 4561fbf1b265dd17e9ef2ce76b7e8a0d574238ed..028e666610c78d9420f8e85a519b81481d8ddd95 100644 (file)
@@ -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;
index 27de521ea0ae28627290094e0b4dc12f8f9b615d..bc4dc6cdc33e7fc910c2e2325483040331f85098 100644 (file)
@@ -1488,6 +1488,10 @@ file cannot be correctly imported for a Bathymetry definition.</translation>
       <source>EDIT_IMMERSIBLE_ZONE</source>
       <translation>Edit immersible zone</translation>
     </message>
+    <message>
+      <source>ZONE_OBJECT_CANNOT_BE_CREATED</source>
+      <translation>Zone object can not be created</translation>
+    </message>
   </context>
 
   <context>