Salome HOME
22501: [CEA 1076] Impossible to mesh at its position a translated without copy shape...
authoreap <eap@opencascade.com>
Thu, 13 Mar 2014 17:57:29 +0000 (21:57 +0400)
committereap <eap@opencascade.com>
Thu, 13 Mar 2014 17:57:29 +0000 (21:57 +0400)
 Fix an introduced bug

src/SMESH_I/SMESH_Mesh_i.cxx

index f2e1ca4..2b230a5 100644 (file)
@@ -199,7 +199,8 @@ void SMESH_Mesh_i::SetShape( GEOM::GEOM_Object_ptr theShapeObject )
   // to track changes of GEOM groups
   SMESH::SMESH_Mesh_var mesh = _this();
   addGeomGroupData( theShapeObject, mesh );
-  _mainShapeTick = theShapeObject->GetTick();
+  if ( !CORBA::is_nil( theShapeObject ))
+    _mainShapeTick = theShapeObject->GetTick();
 }
 
 //================================================================================