]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2205 Ability to customize the arrows and texts of dimensions (partially)
authornds <nds@opencascade.com>
Mon, 25 Sep 2017 08:56:43 +0000 (11:56 +0300)
committernds <nds@opencascade.com>
Mon, 25 Sep 2017 08:56:43 +0000 (11:56 +0300)
src/SketcherPrs/SketcherPrs_LengthDimension.cpp

index 3aeebbc2b4b15bb58b8da98086628df605382bf3..2b55584a000dd1a7123ab14290e5351692c56f2c 100644 (file)
@@ -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);
   }