Scenario: in mirror list a dimension text is selectable.
{
Standard_Integer aMode;
switch (theMode) {
+ case 0: // we should use selection of all objects
+ aMode = 0;
+ break;
case SketcherPrs_Tools::Sel_Dimension_All:
aMode = 0;
break;
case SketcherPrs_Tools::Sel_Dimension_Text:
aMode = 2;
break;
- default:
- aMode = theMode;
+ default: {
+ // there are own selection modes, so the others should be ignored
+ // otherwise, the text selection appears in the viewer
+ return;
+ }
}
AIS_LengthDimension::ComputeSelection(aSelection, aMode);
}
{
Standard_Integer aMode;
switch (theMode) {
+ case 0: // we should use selection of all objects
+ aMode = 0;
+ break;
case SketcherPrs_Tools::Sel_Dimension_All:
aMode = 0;
break;
case SketcherPrs_Tools::Sel_Dimension_Text:
aMode = 2;
break;
- default:
- aMode = theMode;
+ default: {
+ // there are own selection modes, so the others should be ignored
+ // otherwise, the text selection appears in the viewer
+ return;
+ }
}
AIS_RadiusDimension::ComputeSelection(aSelection, aMode);
}