From 82871fddd8641f92e6050d8b95ab28c45f5fe4b8 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 3 Apr 2006 13:51:04 +0000 Subject: [PATCH] Correct an obvious mistake. --- src/SMESHGUI/SMESHGUI_Swig.cxx | 6 +++--- src/SMESH_I/SMESH_MEDMesh_i.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.39.2