Salome HOME
Task #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / SketchAPI / SketchAPI_Ellipse.cpp
index d05222b9f52a21b1a73c033531a7a54ea44ad7bb..88db2ec9a270bdd854938771a8ac975c90c2da1c 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <GeomAPI_Pnt2d.h>
 
+#include <Locale_Convert.h>
+
 #include <ModelHighAPI_Dumper.h>
 #include <ModelHighAPI_Selection.h>
 #include <ModelHighAPI_Tools.h>
@@ -209,7 +211,7 @@ static void createPoint(const CompositeFeaturePtr& theSketch,
   aPointFeature->reference(SketchPlugin_Point::PARENT_ID())->setValue(theEllipse);
   aPointFeature->execute();
 
-  std::wstring aName = theEllipse->name() + L"_" + ModelAPI_Tools::toWString(theCoincident);
+  std::wstring aName = theEllipse->name() + L"_" + Locale::Convert::toWString(theCoincident);
   aPointFeature->data()->setName(aName);
   aPointFeature->lastResult()->data()->setName(aName);