diff --git a/src/SMESHGUI/SMESHGUI_Swig.cxx b/src/SMESHGUI/SMESHGUI_Swig.cxx index 203db32de..20b00e565 100644 --- a/src/SMESHGUI/SMESHGUI_Swig.cxx +++ b/src/SMESHGUI/SMESHGUI_Swig.cxx @@ -299,10 +299,10 @@ SMESH_Swig::SMESH_Swig() MESSAGE("Constructeur"); - if(!CORBA::is_nil(anORB)) + if(CORBA::is_nil(anORB)) ProcessVoidEvent(new TEvent(anORB)); - ASSERT(CORBA::is_nil(anORB)); + ASSERT(!CORBA::is_nil(anORB)); } @@ -440,7 +440,7 @@ SMESH_Swig::AddNewHypothesis(const char* theIOR) CORBA::String_var anEntry = aSObject->GetID(); return anEntry._retn(); } - + //=============================================================== const char* diff --git a/src/SMESH_I/SMESH_MEDMesh_i.cxx b/src/SMESH_I/SMESH_MEDMesh_i.cxx index bbf959006..d67f7e62d 100644 --- a/src/SMESH_I/SMESH_MEDMesh_i.cxx +++ b/src/SMESH_I/SMESH_MEDMesh_i.cxx @@ -1081,7 +1081,7 @@ void SMESH_MEDMesh_i::calculeNbElts() throw(SALOME::SALOME_Exception) int nb_of_nodes = elem->NbNodes(); medElement = SALOME_MED::MED_HEXA8; - ASSERT(nb_of_nodes = 8); + ASSERT(nb_of_nodes == 8); if (trouveHexa8 == 0) {