Salome HOME
Unicode support: correct handling of unicode on GUI level
[modules/geom.git] / src / PrimitiveGUI / PrimitiveGUI_CylinderDlg.cxx
index 580335979976b36990bd42afbfc10da49abed5f9..45b2488700ae1b90435433764d35b867777352b1 100644 (file)
@@ -446,7 +446,7 @@ bool PrimitiveGUI_CylinderDlg::execute (ObjectList& objects)
          aParameters << GroupPoints->SpinBox_DX->text();
          aParameters << GroupPoints->SpinBox_DY->text();
          aParameters << GroupPoints->SpinBox_DZ->text();
-         anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+         anObj->SetParameters(aParameters.join(":").toUtf8().constData());
        }
        res = true;
       }
@@ -457,7 +457,7 @@ bool PrimitiveGUI_CylinderDlg::execute (ObjectList& objects)
          QStringList aParameters;
          aParameters << GroupPoints->SpinBox_DX->text();
          aParameters << GroupPoints->SpinBox_DY->text();
-         anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+         anObj->SetParameters(aParameters.join(":").toUtf8().constData());
        }
        res = true;
       }
@@ -472,7 +472,7 @@ bool PrimitiveGUI_CylinderDlg::execute (ObjectList& objects)
        aParameters << GroupDimensions->SpinBox_DX->text();
        aParameters << GroupDimensions->SpinBox_DY->text();
        aParameters << GroupDimensions->SpinBox_DZ->text();
-       anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+       anObj->SetParameters(aParameters.join(":").toUtf8().constData());
       }
       res = true;
     }
@@ -483,7 +483,7 @@ bool PrimitiveGUI_CylinderDlg::execute (ObjectList& objects)
        QStringList aParameters;
        aParameters << GroupDimensions->SpinBox_DX->text();
        aParameters << GroupDimensions->SpinBox_DY->text();
-       anObj->SetParameters(aParameters.join(":").toLatin1().constData());
+       anObj->SetParameters(aParameters.join(":").toUtf8().constData());
       }
       res = true;
     }