]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for #19722 - Field with string : impossible to save. Make strings-fields exported...
authormpv <mikhail.ponikarov@opencascade.com>
Tue, 23 Jun 2020 14:06:05 +0000 (17:06 +0300)
committervsr <vsr@opencascade.com>
Wed, 24 Jun 2020 16:07:49 +0000 (19:07 +0300)
src/ConnectorPlugin/ConnectorPlugin_PublishToStudyFeature.py

index d75dd6a52878940714aaa761e04e38c46009063a..a87eb0f6fcf36c6ea42e94bc076123c79557dcee 100644 (file)
@@ -224,7 +224,10 @@ class PublishToStudyFeature(ModelAPI.ModelAPI_Feature):
     def fillField(self, theField, theFeature, theEngine, theSelectionIndices):
       aTables = theFeature.tables("values")
       aValType = aTables.type() # type of the values
-      theField.SetValuesType(aValType)
+      aValTypeToSet = aValType
+      if aValType == 3: # strings do not supported by SMESH, so, make them empty boolean table
+        aValTypeToSet = 0
+      theField.SetValuesType(aValTypeToSet)
       aNumSteps = aTables.tables() # number of steps is number of tables
       aSteps = []
       for aVal in range(aNumSteps):