From f3a66dd7c09180cbed88b2fabb35fa573f1d6bf0 Mon Sep 17 00:00:00 2001 From: oan Date: Thu, 27 Jul 2023 16:18:59 +0100 Subject: [PATCH] 0033436: Data Exchange, DE_Wrapper - DEXCAFCascade_ConfigurationNode::BuildProvider() not initialize provider Pass pointer to DEXCAFCascade_ConfigurationNode to DEXCAFCascade_Provider; Remove forcible manual reset of Provider's node in DE_Wrapper::FindProvider() to verify that all specializations of configuration node work properly without necessity of workarounds. --- src/DE/DE_Wrapper.cxx | 1 - src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DE/DE_Wrapper.cxx b/src/DE/DE_Wrapper.cxx index 45bac0b135..16281c2e28 100644 --- a/src/DE/DE_Wrapper.cxx +++ b/src/DE/DE_Wrapper.cxx @@ -538,7 +538,6 @@ Standard_Boolean DE_Wrapper::FindProvider(const TCollection_AsciiString& thePath { theProvider = aNode->BuildProvider(); aNode->GlobalParameters = GlobalParameters; - theProvider->SetNode(aNode); return Standard_True; } } diff --git a/src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx b/src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx index 4f91e2d0ba..ce56b1151a 100644 --- a/src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx +++ b/src/DEXCAFCascade/DEXCAFCascade_ConfigurationNode.cxx @@ -125,7 +125,7 @@ Handle(DE_ConfigurationNode) DEXCAFCascade_ConfigurationNode::Copy() const //======================================================================= Handle(DE_Provider) DEXCAFCascade_ConfigurationNode::BuildProvider() { - return new DEXCAFCascade_Provider(); + return new DEXCAFCascade_Provider (this); } //=======================================================================