From: nds Date: Mon, 25 Sep 2017 08:56:43 +0000 (+0300) Subject: Issue #2205 Ability to customize the arrows and texts of dimensions (partially) X-Git-Tag: V_2.9.0~23^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3f9f0a665a02c7ef77f43415d13569d70af74d6;p=modules%2Fshaper.git Issue #2205 Ability to customize the arrows and texts of dimensions (partially) --- diff --git a/src/SketcherPrs/SketcherPrs_LengthDimension.cpp b/src/SketcherPrs/SketcherPrs_LengthDimension.cpp index 3aeebbc2b..2b55584a0 100644 --- a/src/SketcherPrs/SketcherPrs_LengthDimension.cpp +++ b/src/SketcherPrs/SketcherPrs_LengthDimension.cpp @@ -84,8 +84,8 @@ void updateArrows(Handle(Prs3d_DimensionAspect) theDimAspect, } else if (theLocationType == SketcherPrs_Tools::LOCATION_RIGHT || theLocationType == SketcherPrs_Tools::LOCATION_LEFT) { - theDimAspect->SetTextHorizontalPosition(Prs3d_DTHP_Left); - //theDimAspect->SetTextHorizontalPosition(Prs3d_DTHP_Right); + theDimAspect->SetTextHorizontalPosition( + theLocationType == SketcherPrs_Tools::LOCATION_LEFT ? Prs3d_DTHP_Left : Prs3d_DTHP_Right); theDimAspect->SetArrowOrientation(Prs3d_DAO_External); }