]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix usage of AddInStudy()
authoreap <eap@opencascade.com>
Fri, 17 Jan 2020 18:23:00 +0000 (21:23 +0300)
committereap <eap@opencascade.com>
Fri, 17 Jan 2020 18:23:00 +0000 (21:23 +0300)
src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py

index cdda96119bdf44a4b10c197584c045d4d0724f8a..5f65ef4a6cf5f31f3e4acc4bb6de9bcbe6811b37 100644 (file)
@@ -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)