From 99d04e74ff39cf86e98ebe7a614dfd7266fc85c1 Mon Sep 17 00:00:00 2001 From: srn Date: Fri, 6 Apr 2007 12:56:35 +0000 Subject: [PATCH] Fixed incorrect check in method DefineComponentInstance --- src/SALOMEDS/SALOMEDS_StudyBuilder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SALOMEDS/SALOMEDS_StudyBuilder.cxx b/src/SALOMEDS/SALOMEDS_StudyBuilder.cxx index 277ceebb9..2d5a3901c 100644 --- a/src/SALOMEDS/SALOMEDS_StudyBuilder.cxx +++ b/src/SALOMEDS/SALOMEDS_StudyBuilder.cxx @@ -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(theSCO.get()); if (_isLocal) { -- 2.39.2