From 09e632d5370843e3cd13de6f2e4d84fb3c7a5b0e Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 30 Aug 2016 11:05:23 +0300 Subject: [PATCH] Issue #1703: Modify selection area of a dimension text according to the current view scale --- src/SketcherPrs/SketcherPrs_Angle.cpp | 1 + src/SketcherPrs/SketcherPrs_Radius.cpp | 1 + 2 files changed, 2 insertions(+) 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); } -- 2.39.2