X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MacroBSpline.cpp;h=9781c8e22dd2fae4b650d1e2a0eb7eee391d32d6;hb=86f4ec4eb5ff5f119914f3d44cf945b49845d8c2;hp=3d3ab4c53e7c92616bb209c0ab0b0085f1fe84c9;hpb=11e506a02bbd919d5977b3a25cd4cd84ba54fda4;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp b/src/SketchPlugin/SketchPlugin_MacroBSpline.cpp index 3d3ab4c53..9781c8e22 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-2023 CEA, EDF // // 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;