From cd882b4e974dbbc454a6cb14e33322fba81d402a Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 12 Jul 2016 07:48:14 +0300 Subject: [PATCH] Temporary modification to check whether the compilation on Linux is correct. OCCT patch is absent for Jenkins compilation, so there is an error in built. --- src/SketcherPrs/SketcherPrs_Angle.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/SketcherPrs/SketcherPrs_Angle.cpp b/src/SketcherPrs/SketcherPrs_Angle.cpp index 99ac0c247..eb3a1a4fb 100644 --- a/src/SketcherPrs/SketcherPrs_Angle.cpp +++ b/src/SketcherPrs/SketcherPrs_Angle.cpp @@ -27,6 +27,8 @@ #define PI 3.1415926535897932 +#define COMPILATION_CORRECTION + IMPLEMENT_STANDARD_HANDLE(SketcherPrs_Angle, AIS_AngleDimension); IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Angle, AIS_AngleDimension); @@ -161,10 +163,14 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP double aDist = -1; switch (anAngleType) { case SketcherPrs_Tools::ANGLE_DIRECT: { +#ifndef COMPILATION_CORRECTION SetArrowVisible(Standard_False/*first*/, Standard_True/*second*/); +#endif SetMeasuredGeometry(myFirstPoint, myCenterPoint, mySecondPoint); +#ifndef COMPILATION_CORRECTION bool isReversedPlanes = isAnglePlaneReversedToSketchPlane(); SetAngleReversed(!isReversedPlanes); +#endif } break; case SketcherPrs_Tools::ANGLE_COMPLEMENTARY: { @@ -173,14 +179,20 @@ void SketcherPrs_Angle::Compute(const Handle(PrsMgr_PresentationManager3d)& theP gp_Pnt aFirstPoint = aCenterPoint.Translated( gp_Vec(myCenterPoint, myFirstPoint).Normalized() * (-anEdge1Length)); SetMeasuredGeometry(aFirstPoint, myCenterPoint, mySecondPoint); +#ifndef COMPILATION_CORRECTION SetAngleReversed(false); +#endif } break; case SketcherPrs_Tools::ANGLE_BACKWARD: { +#ifndef COMPILATION_CORRECTION SetArrowVisible(Standard_False/*first*/, Standard_True/*second*/); +#endif SetMeasuredGeometry(myFirstPoint, myCenterPoint, mySecondPoint); bool isReversedPlanes = isAnglePlaneReversedToSketchPlane(); +#ifndef COMPILATION_CORRECTION SetAngleReversed(isReversedPlanes); +#endif } break; default: -- 2.39.2