diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx index e84e368f8..d4c0e9ae1 100644 --- a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx +++ b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx @@ -405,9 +405,9 @@ void EntityGUI_SubShapeDlg::ResetStateOfDialog() //================================================================================= void EntityGUI_SubShapeDlg::SubShapeToggled() { - if ( isAllSubShapes() ) - globalSelection( GEOM_ALLSHAPES ); - else + globalSelection( GEOM_ALLSHAPES ); + + if ( !isAllSubShapes() ) localSelection( myObject, shapeType() ); }