From: dbv Date: Fri, 6 May 2016 12:37:05 +0000 (+0300) Subject: Issue #1484: Fixed dimension text draw X-Git-Tag: V_2.3.0~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84c5ed17816f8ee17bd35334d38aacca9e76dad3;p=modules%2Fshaper.git Issue #1484: Fixed dimension text draw --- diff --git a/src/SketcherPrs/SketcherPrs_Tools.cpp b/src/SketcherPrs/SketcherPrs_Tools.cpp index ad33dbe9b..91a8d3df8 100644 --- a/src/SketcherPrs/SketcherPrs_Tools.cpp +++ b/src/SketcherPrs/SketcherPrs_Tools.cpp @@ -364,7 +364,7 @@ void updateArrows(Handle(Prs3d_DimensionAspect) theDimAspect, double theDimValue if(theTextSize > ((theDimValue - 3 * SketcherPrs_Tools::getArrowSize()) * aViewerScale)) { theDimAspect->SetTextHorizontalPosition(Prs3d_DTHP_Left); theDimAspect->SetArrowOrientation(Prs3d_DAO_External); - theDimAspect->SetExtensionSize(theTextSize / aViewerScale - SketcherPrs_Tools::getArrowSize() / 2.0); + theDimAspect->SetExtensionSize((theTextSize / aViewerScale + SketcherPrs_Tools::getArrowSize()) / 2.0); } else { theDimAspect->SetTextHorizontalPosition(Prs3d_DTHP_Center); theDimAspect->SetArrowOrientation(Prs3d_DAO_Internal);