]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1703: Modify selection area of a dimension text according to the current view...
authorvsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Aug 2016 08:05:23 +0000 (11:05 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Tue, 30 Aug 2016 08:05:46 +0000 (11:05 +0300)
src/SketcherPrs/SketcherPrs_Angle.cpp
src/SketcherPrs/SketcherPrs_Radius.cpp

index 97bb7bff643dda79590f7a4078be481be66b4dd1..c481c2873bef0836c60eea38ecd8edd58819a442 100644 (file)
@@ -239,6 +239,7 @@ void SketcherPrs_Angle::ComputeSelection(const Handle(SelectMgr_Selection)& aSel
     return; 
   }
   }
+  SetSelToleranceForText2d(SketcherPrs_Tools::getTextHeight());
   AIS_AngleDimension::ComputeSelection(aSelection, aMode);
 }
 
index 306fa9577d2cfc8194b75d8a3e8fe0ce8c91de5f..4edb8778b638b07e02483d92ba2781a560109646 100644 (file)
@@ -170,5 +170,6 @@ void SketcherPrs_Radius::ComputeSelection(const Handle(SelectMgr_Selection)& aSe
     return; 
   }
   }
+  SetSelToleranceForText2d(SketcherPrs_Tools::getTextHeight());
   AIS_RadiusDimension::ComputeSelection(aSelection, aMode);
 }