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 f2e1ca4c83c1494ddf71d2d2d2e78f79b2963c10..2b230a593d9dc5f9e1182fd31bdc8d88fef09bca 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();
 }
 
 //================================================================================