From: jfa Date: Mon, 3 Apr 2006 13:51:04 +0000 (+0000) Subject: Correct an obvious mistake. X-Git-Tag: T3_2_0b1_pre1~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82871fddd8641f92e6050d8b95ab28c45f5fe4b8;p=modules%2Fsmesh.git Correct an obvious mistake. --- 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) {