]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1484: Fixed dimension text draw
authordbv <dbv@opencascade.com>
Fri, 6 May 2016 12:37:05 +0000 (15:37 +0300)
committerdbv <dbv@opencascade.com>
Fri, 6 May 2016 12:37:30 +0000 (15:37 +0300)
src/SketcherPrs/SketcherPrs_Tools.cpp

index ad33dbe9b679b8bfdec974128df93320f4a10021..91a8d3df81ce5545857290465ac1e7328219d94d 100644 (file)
@@ -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);