X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MacroBSpline.cpp;h=a887c1aa61bde2e8e0e60317f109b6d629d7219e;hb=026f4997e7531acff5d6677877d4e948088c46ac;hp=3d3ab4c53e7c92616bb209c0ab0b0085f1fe84c9;hpb=11e506a02bbd919d5977b3a25cd4cd84ba54fda4;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp b/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp index 3d3ab4c53..a887c1aa6 100644 --- a/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp +++ b/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2019-2020 CEA/DEN, EDF R&D +// Copyright (C) 2019-2021 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 @@ -27,12 +27,15 @@ #include #include +#include + #include #include #include #include #include #include +#include #include @@ -266,10 +269,10 @@ void SketchPlugin_MacroBSpline::assignDefaultNameForAux(FeaturePtr theAuxFeature { FeaturePtr aBSpline = ModelAPI_Feature::feature(theBSplinePoles->owner()); - std::ostringstream aName; + std::wostringstream aName; aName << aBSpline->name(); if (theAuxFeature->getKind() == SketchPlugin_Point::ID()) - aName << "_" << theBSplinePoles->id() << "_" << thePoleIndex1; + aName << "_" << Locale::Convert::toWString(theBSplinePoles->id()) << "_" << thePoleIndex1; else aName << "_segment_" << thePoleIndex1 << "_" << thePoleIndex2;