X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketcherPrs%2FSketcherPrs_DimensionStyle.cpp;h=d535569f7a663c474f6ba3db52790820ce0a33ae;hb=81baa77e52cb1ade2bfbe5b21e893cc34b03c323;hp=fb82eb40b2d564fd67c7023b7ef40df7378f1f24;hpb=645e2cb70c0e40290725f28fdc5fec8a93338d28;p=modules%2Fshaper.git diff --git a/src/SketcherPrs/SketcherPrs_DimensionStyle.cpp b/src/SketcherPrs/SketcherPrs_DimensionStyle.cpp index fb82eb40b..d535569f7 100644 --- a/src/SketcherPrs/SketcherPrs_DimensionStyle.cpp +++ b/src/SketcherPrs/SketcherPrs_DimensionStyle.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -23,8 +23,11 @@ #include +#include + #include #include +#include //#ifndef WNT // #define COMPILATION_CORRECTION @@ -49,7 +52,7 @@ void SketcherPrs_DimensionStyle::DimensionValue::init( { myDoubleValue = theAttributeValue->value(); myHasParameters = theAttributeValue->usedParameters().size() > 0; - myTextValue = theAttributeValue->text(); + myTextValue = Locale::Convert::toString(theAttributeValue->text()); } SketcherPrs_DimensionStyle::SketcherPrs_DimensionStyle() @@ -80,7 +83,11 @@ void SketcherPrs_DimensionStyle::updateDimensions(AIS_Dimension* theDimension, /// do not show special symbols of dimension: /// previous implementation did not allow to unite them theDimension->SetSpecialSymbol(MyEmptySymbol); +#if OCC_VERSION_HEX > 0x070400 + theDimension->SetDisplaySpecialSymbol(PrsDim_DisplaySpecialSymbol_No); +#else theDimension->SetDisplaySpecialSymbol(AIS_DSS_No); +#endif TCollection_ExtendedString aCustomValue; if (theHasParameters) {