]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Processing composilid like a solid in selection.
authornds <natalia.donis@opencascade.com>
Fri, 21 Aug 2015 04:01:06 +0000 (07:01 +0300)
committernds <natalia.donis@opencascade.com>
Fri, 21 Aug 2015 04:01:32 +0000 (07:01 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index 0af14a9555727fc26a5a875aad1771ba077d0338..b83e14576ac94d789cb0b7de800aaca559152437 100755 (executable)
@@ -330,7 +330,10 @@ QIntList ModuleBase_WidgetMultiSelector::getShapeTypes() const
   }
   else {
     for (int i = 0, aCount = myTypeCombo->count(); i < aCount; i++) {
-      aShapeTypes.append(ModuleBase_Tools::shapeType(myTypeCombo->itemText(i)));
+      TopAbs_ShapeEnum aType = ModuleBase_Tools::shapeType(myTypeCombo->itemText(i));
+      aShapeTypes.append(aType);
+      if (aType == TopAbs_SOLID)
+        aShapeTypes.append(TopAbs_COMPSOLID);
     }
   }
   return aShapeTypes;