myAspect->MakeText3d(false);
myAspect->MakeTextShaded(false);
myAspect->MakeUnitsDisplayed(false);
- myAspect->TextAspect()->SetHeight(MyTextHeight);
+ myAspect->TextAspect()->SetHeight(SketcherPrs_Tools::getDefaultTextHeight());
myAspect->ArrowAspect()->SetLength(SketcherPrs_Tools::getArrowSize());
SetDimensionAspect(myAspect);
- SetSelToleranceForText2d(MyTextHeight);
+ SetSelToleranceForText2d(SketcherPrs_Tools::getDefaultTextHeight());
}
{
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);
}