]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Temporary modification to check whether the compilation on Linux is correct. OCCT...
authornds <nds@opencascade.com>
Mon, 11 Jul 2016 12:25:20 +0000 (15:25 +0300)
committernds <nds@opencascade.com>
Mon, 11 Jul 2016 12:25:20 +0000 (15:25 +0300)
src/SketcherPrs/SketcherPrs_DimensionStyleListener.cpp

index 4cab4c9d77875ca19c0e910e2eaebc273c1d0bd8..18e4e7976eaf29f0b216748cd2b97fa663bce9fe 100755 (executable)
@@ -12,6 +12,8 @@
 #include <AIS_Dimension.hxx>
 #include <TCollection_ExtendedString.hxx>
 
+#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
 }