From: rnv Date: Fri, 19 Jan 2018 13:01:53 +0000 (+0300) Subject: Implement unicode support in SALOME: first attempt X-Git-Tag: SHAPER_V9_1_0RC1~2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0989b7fd033d3a3f90ad2fedc01efa33eb856711;p=modules%2Fgeom.git Implement unicode support in SALOME: first attempt --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index d859307d5..77eb58b35 100755 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -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 ); }