From 3d7fa767746eb3dd4c30b02fdaf96eef417039eb Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 11 Jul 2016 15:25:20 +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_DimensionStyleListener.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SketcherPrs/SketcherPrs_DimensionStyleListener.cpp b/src/SketcherPrs/SketcherPrs_DimensionStyleListener.cpp index 4cab4c9d7..18e4e7976 100755 --- a/src/SketcherPrs/SketcherPrs_DimensionStyleListener.cpp +++ b/src/SketcherPrs/SketcherPrs_DimensionStyleListener.cpp @@ -12,6 +12,8 @@ #include #include +#define COMPILATION_CORRECTION + // it is not possible to use 0x2211 as summ symbol because it is not supported by // debian Linux platform static const Standard_ExtCharacter MyEmptySymbol(' '); @@ -101,6 +103,10 @@ void SketcherPrs_DimensionStyleListener::updateDimensions(AIS_Dimension* theDime sprintf (aFmtBuffer, aFormatStr.ToCString(), theDoubleValue); aCustomValue = TCollection_ExtendedString (aFmtBuffer); } +#ifdef COMPILATION_CORRECTION + theDimension->SetCustomValue(theDoubleValue); +#else theDimension->SetCustomValue(aCustomValue); +#endif } -- 2.39.2