X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchAPI%2FSketchAPI_BSpline.cpp;fp=src%2FSketchAPI%2FSketchAPI_BSpline.cpp;h=2280396c170ce60ac341562fd9701b67ba0e1726;hb=f14192492e36f4febc93b2ad7ab7f866cbbdf71b;hp=c89abac78a995dcfba4af40eacc465f5e4c5638d;hpb=c68483238115b437c5e0b37de859fd8ca9676000;p=modules%2Fshaper.git diff --git a/src/SketchAPI/SketchAPI_BSpline.cpp b/src/SketchAPI/SketchAPI_BSpline.cpp index c89abac78..2280396c1 100644 --- a/src/SketchAPI/SketchAPI_BSpline.cpp +++ b/src/SketchAPI/SketchAPI_BSpline.cpp @@ -30,6 +30,8 @@ #include #include +#include + #include #include #include @@ -152,8 +154,8 @@ static void createPole(const CompositeFeaturePtr& theSketch, aPointFeature->reference(SketchPlugin_Point::PARENT_ID())->setValue(theBSpline); aPointFeature->execute(); - std::ostringstream aName; - aName << theBSpline->name() << "_" << thePoles->id() << "_" << thePoleIndex; + std::wostringstream aName; + aName << theBSpline->name() << "_" << ModelAPI_Tools::toWString(thePoles->id()) << "_" << thePoleIndex; aPointFeature->data()->setName(aName.str()); aPointFeature->lastResult()->data()->setName(aName.str()); @@ -185,7 +187,7 @@ static void createSegment(const CompositeFeaturePtr& theSketch, aLineFeature->reference(SketchPlugin_Point::PARENT_ID())->setValue(theBSpline); aLineFeature->execute(); - std::ostringstream aName; + std::wostringstream aName; aName << theBSpline->name() << "_segment_" << theStartPoleIndex << "_" << aEndPoleIndex; aLineFeature->data()->setName(aName.str()); aLineFeature->lastResult()->data()->setName(aName.str());