X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTransformationGUI%2FTransformationGUI_ScaleDlg.cxx;h=83ed162b1453c49facfc6b506ccc57222d2a8f7b;hb=c52059c3f88890a936705180edf2bd54e88e160b;hp=5a8930bd7b80ee9b23c652a99c59ef852b5d7521;hpb=40d76807e945ceef6a730f4d0177e167d3ccb453;p=modules%2Fgeom.git diff --git a/src/TransformationGUI/TransformationGUI_ScaleDlg.cxx b/src/TransformationGUI/TransformationGUI_ScaleDlg.cxx index 5a8930bd7..83ed162b1 100644 --- a/src/TransformationGUI/TransformationGUI_ScaleDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_ScaleDlg.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -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()); } } @@ -466,15 +466,16 @@ bool TransformationGUI_ScaleDlg::execute (ObjectList& objects) { anObj = anOper->ScaleShapeAlongAxesCopy(myObjects[i].get(), myPoint.get(), SpinBox_FX->value(), SpinBox_FY->value(), SpinBox_FZ->value()); - if (!anObj->_is_nil()) + if (!anObj->_is_nil()) { if(!IsPreview()) { QStringList aParameters; aParameters<text(); aParameters<text(); aParameters<text(); - anObj->SetParameters(aParameters.join(":").toLatin1().constData()); + anObj->SetParameters(aParameters.join(":").toUtf8().constData()); } objects.push_back(anObj._retn()); + } } } else