]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Implement unicode support in SALOME: first attempt
authorrnv <rnv@opencascade.com>
Fri, 19 Jan 2018 13:01:53 +0000 (16:01 +0300)
committerrnv <rnv@opencascade.com>
Fri, 19 Jan 2018 13:01:53 +0000 (16:01 +0300)
src/GEOMGUI/GeometryGUI.cxx

index d859307d51f403552460633a5a92d95b248a8e62..77eb58b35d5693f470752501edc7c2e7a070a21b 100755 (executable)
@@ -3525,10 +3525,10 @@ bool GeometryGUI::renameObject( const QString& entry, const QString& name)
     if ( obj->FindAttribute(anAttr, "AttributeName") ) {
       _PTR(AttributeName) aName (anAttr);
 
-      aName->SetValue( name.toLatin1().data() ); // rename the SObject
+      aName->SetValue( name.toUtf8().data() ); // rename the SObject
       GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_narrow(GeometryGUI::ClientSObjectToObject(obj));
       if (!CORBA::is_nil(anObj)) {
-        anObj->SetName( name.toLatin1().data() );  // Rename the corresponding GEOM_Object
+        anObj->SetName( name.toUtf8().data() );  // Rename the corresponding GEOM_Object
         emit SignalDependencyTreeRenameObject( anObj->GetEntry() );
         emit SignalTextTreeRenameObject( entry );
       }