From: vsv Date: Thu, 11 Sep 2014 15:31:45 +0000 (+0400) Subject: Issue #117: Length of arrows defined as 1/10 of dimension value X-Git-Tag: V_0.4.4~69^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b126f6f26f87acb7b09f0cc56f4dc6b9dd56a13f;p=modules%2Fshaper.git Issue #117: Length of arrows defined as 1/10 of dimension value --- diff --git a/src/GeomAPI/GeomAPI_AISObject.cpp b/src/GeomAPI/GeomAPI_AISObject.cpp index 4ba7232b3..e79cc9fe3 100644 --- a/src/GeomAPI/GeomAPI_AISObject.cpp +++ b/src/GeomAPI/GeomAPI_AISObject.cpp @@ -92,6 +92,7 @@ void GeomAPI_AISObject::createDistance(boost::shared_ptr theStartPo anAspect->MakeText3d(false); anAspect->TextAspect()->SetHeight(CONSTRAINT_TEXT_HEIGHT); anAspect->MakeTextShaded(false); + anAspect->ArrowAspect()->SetLength(theDistance / 10.); aDimAIS->DimensionAspect()->MakeUnitsDisplayed(false); aDimAIS->SetDimensionAspect(anAspect); aDimAIS->SetSelToleranceForText2d(CONSTRAINT_TEXT_SELECTION_TOLERANCE);