]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/Selector/Selector_Primitive.cpp
Salome HOME
Task #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / Selector / Selector_Primitive.cpp
index 6b5706f8b317a3fd2bd230384ba5c397e0ebd78f..6825fdf9214055727da65b9d07352ab7d46bda5c 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <Selector_NameGenerator.h>
 
+#include <Locale_Convert.h>
+
 #include <TNaming_NamedShape.hxx>
 #include <TDataStd_Name.hxx>
 
@@ -80,7 +82,7 @@ std::wstring Selector_Primitive::name(Selector_NameGenerator* theNameGenerator)
   std::wstring aResult = theNameGenerator->contextName(myFinal);
   if (!aResult.empty()) {
     aResult += L"/";
-    aResult += ((wchar_t*)aName->Get().ToExtString());
+    aResult += Locale::Convert::toWString(aName->Get().ToExtString());
   }
   return aResult;
 }