]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Correct an obvious mistake.
authorjfa <jfa@opencascade.com>
Mon, 3 Apr 2006 13:51:04 +0000 (13:51 +0000)
committerjfa <jfa@opencascade.com>
Mon, 3 Apr 2006 13:51:04 +0000 (13:51 +0000)
src/SMESHGUI/SMESHGUI_Swig.cxx
src/SMESH_I/SMESH_MEDMesh_i.cxx

index 203db32dea120255788b7ab71f96c47c3b796388..20b00e5653788191e0fdbaea627ed0d3577be0a5 100644 (file)
@@ -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* 
index bbf9590069631a612e308244c12bfd7fcd7b9668..d67f7e62d6689396a3b4b33237628c1c140b6dcb 100644 (file)
@@ -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)
                        {