]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #404
authormpv <mpv@opencascade.com>
Fri, 17 Apr 2015 11:56:43 +0000 (14:56 +0300)
committermpv <mpv@opencascade.com>
Fri, 17 Apr 2015 11:56:43 +0000 (14:56 +0300)
src/ConnectorPlugin/ConnectorPlugin_ExportFeature.py

index 26ab3ca9fd49099ae27ac15dd0198b381852be41..9241308435320ab15b5bc4f3b83fd8f7431371cb 100644 (file)
@@ -84,9 +84,11 @@ class ExportFeature(ModelAPI.ModelAPI_Feature):
         for anIndex in range(0, aFeaturesNum):
             aFeature = self.Part.object("Features", anIndex)
             aSelectionList = aFeature.data().selectionList("group_list")
-            aName = aFeature.data().name()
             # if a group has been found
             if aSelectionList:
+                aFeature = ModelAPI.objectToFeature(aFeature)
+                if aFeature.firstResult() is not None:
+                  aName = aFeature.firstResult().data().name()
                 groupIndex = groupIndex + 1
                 self.createGroupFromList(aSelectionList, aName)