Salome HOME
Unicode support: correct handling of unicode on GUI level
[modules/geom.git] / src / TransformationGUI / TransformationGUI_ScaleDlg.cxx
index 5a8930bd7b80ee9b23c652a99c59ef852b5d7521..6aab807289a694d0a24fd52e228f9fb6a57b6d03 100644 (file)
@@ -442,7 +442,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
           anObj = anOper->ScaleShapeCopy(myObjects[i].get(), myPoint.get(), SpinBox_FX->value());
           if (!anObj->_is_nil()) {
             if(!IsPreview()) 
-              anObj->SetParameters(SpinBox_FX->text().toLatin1().constData());
+              anObj->SetParameters(SpinBox_FX->text().toUtf8().constData());
             objects.push_back(anObj._retn());
           }
         }
@@ -472,7 +472,7 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects)
               aParameters<<SpinBox_FX->text();
               aParameters<<SpinBox_FY->text();
               aParameters<<SpinBox_FZ->text();
-              anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+              anObj->SetParameters(aParameters.join(":").toUtf8().constData());
             }
             objects.push_back(anObj._retn());
         }