Salome HOME
Merge remote branch 'origin/V8_5_asterstudy'
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_MeshUtils.cxx
index 0e322fc4a7c97fc37459a51537a7d02013b793f3..0d5bfb73fd1aa09be969038da33d591d5795e52a 100644 (file)
@@ -66,7 +66,7 @@ namespace SMESH
       theBaseName : theBaseName + "_" + thePostfix;
     if ( _PTR(Study) aStudy = getStudy() ) {
       QString name = baseName;
-      while ( !aStudy->FindObjectByName( name.toLatin1().data(), "SMESH" ).empty() ) {
+      while ( !aStudy->FindObjectByName( name.toUtf8().data(), "SMESH" ).empty() ) {
         int nb = 0;
         QStringList names = name.split("_", QString::KeepEmptyParts);
         if ( names.count() > 0 ) {