]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Correct previous integration
authordmv <dmv@opencascade.com>
Wed, 18 Nov 2009 08:50:03 +0000 (08:50 +0000)
committerdmv <dmv@opencascade.com>
Wed, 18 Nov 2009 08:50:03 +0000 (08:50 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index e51f8c578484561d8cee590255072be1c5eeb81b..899581804e70624205c88d31e152412faacb85dd 100644 (file)
@@ -2158,7 +2158,7 @@ SMESH_Gen_i::ConcatenateCommon(const SMESH::mesh_array& theMeshesArray,
 
   // IPAL21468 Change icon of compound because it need not be computed.
   SALOMEDS::SObject_var aMeshSObj = ObjectToSObject( myCurrentStudy, aNewMesh );
-  if(aMeshSObj) {
+  if( !aMeshSObj->_is_nil() ) {
     SALOMEDS::GenericAttribute_var anAttr;
     SALOMEDS::StudyBuilder_var aBuilder = myCurrentStudy->NewBuilder();
     anAttr = aBuilder->FindOrCreateAttribute( aMeshSObj,"AttributePixMap" );