From: eap Date: Thu, 23 Jan 2020 18:45:33 +0000 (+0300) Subject: Fix an infinite loop X-Git-Tag: V9_5_0a1~17^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4927f9908ad1f3bec77ecb405772b4b0f352dc8a;p=modules%2Fshaper.git Fix an infinite loop --- 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.