From 84c5ed17816f8ee17bd35334d38aacca9e76dad3 Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 6 May 2016 15:37:05 +0300 Subject: [PATCH] Issue #1484: Fixed dimension text draw --- src/SketcherPrs/SketcherPrs_Tools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2