From 955bf1e9b0856c4119806715f65b6b8c1d9aec67 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 17 Jan 2020 21:23:00 +0300 Subject: [PATCH] Fix usage of AddInStudy() --- src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py index cdda96119..5f65ef4a6 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -181,7 +181,7 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): else: aGroup = aGroupOp.CreateGroup(theStudyShape, aSelType) aGroup.SetEntry(aGroupEntry) - theEngine.AddInStudy(aGroup, aRef.firstResult().data().name(), theStudyShape.GetSO()) + theEngine.AddInStudy(aGroup, aRef.firstResult().data().name(), theStudyShape) aGroup.SetSelection(aGroupIndices) if theFields: self.fillField(aGroup, aRef, theEngine, aGroupIndices) -- 2.39.2