]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fixed incorrect check in method DefineComponentInstance
authorsrn <srn@opencascade.com>
Fri, 6 Apr 2007 12:56:35 +0000 (12:56 +0000)
committersrn <srn@opencascade.com>
Fri, 6 Apr 2007 12:56:35 +0000 (12:56 +0000)
src/SALOMEDS/SALOMEDS_StudyBuilder.cxx

index 277ceebb9bd697b7a5dcb027c0fcd3d7361cd5f8..2d5a3901c3b62b2aad4d13899dfec0da829e5b01 100644 (file)
@@ -98,7 +98,7 @@ _PTR(SComponent) SALOMEDS_StudyBuilder::NewComponent(const std::string& Componen
 void SALOMEDS_StudyBuilder::DefineComponentInstance (const _PTR(SComponent)& theSCO, 
                                                     const std::string& ComponentIOR)
 {
-  if(theSCO) return;
+  if(!theSCO) return;
 
   SALOMEDS_SComponent* aSCO = dynamic_cast<SALOMEDS_SComponent*>(theSCO.get());
   if (_isLocal) {