From: vsv Date: Tue, 30 Aug 2016 08:05:23 +0000 (+0300) Subject: Issue #1703: Modify selection area of a dimension text according to the current view... X-Git-Tag: V_2.5.0~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09e632d5370843e3cd13de6f2e4d84fb3c7a5b0e;p=modules%2Fshaper.git Issue #1703: Modify selection area of a dimension text according to the current view scale --- diff --git a/src/SketcherPrs/SketcherPrs_Angle.cpp b/src/SketcherPrs/SketcherPrs_Angle.cpp index 97bb7bff6..c481c2873 100644 --- a/src/SketcherPrs/SketcherPrs_Angle.cpp +++ b/src/SketcherPrs/SketcherPrs_Angle.cpp @@ -239,6 +239,7 @@ void SketcherPrs_Angle::ComputeSelection(const Handle(SelectMgr_Selection)& aSel return; } } + SetSelToleranceForText2d(SketcherPrs_Tools::getTextHeight()); AIS_AngleDimension::ComputeSelection(aSelection, aMode); } diff --git a/src/SketcherPrs/SketcherPrs_Radius.cpp b/src/SketcherPrs/SketcherPrs_Radius.cpp index 306fa9577..4edb8778b 100644 --- a/src/SketcherPrs/SketcherPrs_Radius.cpp +++ b/src/SketcherPrs/SketcherPrs_Radius.cpp @@ -170,5 +170,6 @@ void SketcherPrs_Radius::ComputeSelection(const Handle(SelectMgr_Selection)& aSe return; } } + SetSelToleranceForText2d(SketcherPrs_Tools::getTextHeight()); AIS_RadiusDimension::ComputeSelection(aSelection, aMode); }