From: eap Date: Fri, 17 Jan 2020 18:23:00 +0000 (+0300) Subject: Fix usage of AddInStudy() X-Git-Tag: V9_5_0a1~17^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=955bf1e9b0856c4119806715f65b6b8c1d9aec67;p=modules%2Fshaper.git Fix usage of AddInStudy() --- 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)