Salome HOME
Fix for the issue #19037 : SWIG director method error when switching to SMESH
[modules/shaper_study.git] / src / PY / SHAPERSTUDY.py
index 16640462dda4e20412b37542b929833f4dcea849..5376fba4487474931cac6611b7020a7bdba9a6be 100644 (file)
@@ -298,7 +298,7 @@ class SHAPERSTUDY(SHAPERSTUDY_ORB__POA.Gen,
               anObj = SHAPERSTUDY_Object.SHAPERSTUDY_Group()
               if len(aSub):
                 aSel = aSub.split(";")
-                if len(aSel) > 1:
+                if len(aSel) > 1 and len(aSel[1]):
                   anObj.SetSelection([int(anI) for anI in aSel[1].split(' ')]) # old selection
                 anObj.SetSelection([int(anI) for anI in aSel[0].split(' ')])
               anObj.SetSelectionType(int(aNewShapeStream))