From: jfa Date: Wed, 7 Oct 2020 08:08:55 +0000 (+0300) Subject: [bos #16792] [CEA 16785] Cannot select COMPSOLID. Fix BasicProperties dialog. X-Git-Tag: V9_6_0a2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=496aa6dc0f02b916609d77d77ae952611ad00a6d;p=modules%2Fgeom.git [bos #16792] [CEA 16785] Cannot select COMPSOLID. Fix BasicProperties dialog. --- diff --git a/src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx b/src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx index 7f48beb38..f4343eac9 100644 --- a/src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx +++ b/src/MeasureGUI/MeasureGUI_PropertiesDlg.cxx @@ -169,7 +169,9 @@ void MeasureGUI_PropertiesDlg::activateSelection() globalSelection( aTypes ); std::list needTypes; - needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND ); + needTypes.push_back( TopAbs_EDGE ), needTypes.push_back( TopAbs_WIRE ), + needTypes.push_back( TopAbs_FACE ), needTypes.push_back( TopAbs_SHELL ), + needTypes.push_back( TopAbs_SOLID ), needTypes.push_back( TopAbs_COMPOUND ); localSelection( needTypes ); } @@ -177,7 +179,8 @@ void MeasureGUI_PropertiesDlg::SelectionIntoArgument() { myObj.nullify(); QList aTypes; - aTypes << TopAbs_EDGE << TopAbs_WIRE << TopAbs_FACE << TopAbs_SHELL << TopAbs_SOLID << TopAbs_COMPOUND; + aTypes << TopAbs_EDGE << TopAbs_WIRE << TopAbs_FACE << TopAbs_SHELL + << TopAbs_SOLID << TopAbs_COMPSOLID << TopAbs_COMPOUND; myObj = getSelected( aTypes ); if (!myObj) {