From 4927f9908ad1f3bec77ecb405772b4b0f352dc8a Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 23 Jan 2020 21:45:33 +0300 Subject: [PATCH] Fix an infinite loop --- 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 5f65ef4a6..509b9a31b 100644 --- a/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py +++ b/src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py @@ -112,6 +112,7 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): aSOIter = SHAPERSTUDY_utils.getStudy().NewChildIterator(aComponent) while aSOIter.More(): aSO = aSOIter.Value() + aSOIter.Next() ### here because there is continue inside the loop! anIOR = aSO.GetIOR() if len(anIOR): anObj = salome.orb.string_to_object(anIOR) @@ -127,7 +128,6 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature): if aRes: aBuilder = SHAPERSTUDY_utils.getStudy().NewBuilder() aBuilder.RemoveReference(aSO2) - aSOIter.Next() # Part of the "execute" method: processes the Groups of theRes result publication. # If theFields is true, the same is performed for Fields. -- 2.39.2