Salome HOME
Task #3237: Allow usage of accented characters in ObjectBrowser
[modules/shaper.git] / src / Model / Model_ResultPart.cpp
index e6dc4545382087425e5a3c64b5be7540b0f19dcd..1ecd9ce3923121462831d5bae57593c329b0c8d0 100644 (file)
@@ -36,6 +36,8 @@
 
 #include <GeomAPI_Trsf.h>
 
+#include <Locale_Convert.h>
+
 #include <TNaming_Tool.hxx>
 #include <TNaming_NamedShape.hxx>
 #include <TDataStd_Name.hxx>
@@ -91,7 +93,7 @@ void Model_ResultPart::activate()
   SessionPtr aMgr = ModelAPI_Session::get();
   if (!aMgr->isOperation()) {
     // open transaction even document is not created to set current docs in setActiveDocument
-    std::string aMsg = "Activation " + ModelAPI_Tools::toString(data()->name());
+    std::string aMsg = "Activation " + Locale::Convert::toString(data()->name());
     aMgr->startOperation(aMsg);
     isNewTransaction = true;
   }