From: nds Date: Mon, 11 Jul 2016 12:25:20 +0000 (+0300) Subject: Temporary modification to check whether the compilation on Linux is correct. OCCT... X-Git-Tag: V_2.5.0~207 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d7fa767746eb3dd4c30b02fdaf96eef417039eb;p=modules%2Fshaper.git 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. --- 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 }