]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
bos #42937: [CEA 41954] Integration of UB24.04 patches bos/42937 master V9_14_0a1 11/head
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Wed, 11 Sep 2024 14:03:56 +0000 (16:03 +0200)
committermbs <martin.bernhard@opencascade.com>
Wed, 18 Sep 2024 11:47:16 +0000 (12:47 +0100)
src/PVGUI/PVGUI_Module.cxx

index 79bfdccd854b36043b944c743b9eec78a03f11a0..e739b812a938b7fbaff2b5426f1324c53fafb2e1 100644 (file)
@@ -839,12 +839,12 @@ QString PVGUI_Module::getTraceString()
         vtkSmartPyObject save_cam(PyObject_GetAttrString(trace_mod, const_cast<char*>("SaveCameras")));
         vtkSmartPyObject camera_trace(PyObject_CallMethod(save_cam, const_cast<char*>("get_trace"), NULL));
         // Convert to a single string
         vtkSmartPyObject save_cam(PyObject_GetAttrString(trace_mod, const_cast<char*>("SaveCameras")));
         vtkSmartPyObject camera_trace(PyObject_CallMethod(save_cam, const_cast<char*>("get_trace"), NULL));
         // Convert to a single string
-        vtkSmartPyObject ret(PyUnicode_FromUnicode(Py_DecodeLocale(end_line.toStdString().c_str(), NULL), end_line.size()));
+        vtkSmartPyObject ret(PyUnicode_FromWideChar(Py_DecodeLocale(end_line.toStdString().c_str(), NULL), end_line.size()));
         vtkSmartPyObject final_string(PyObject_CallMethod(ret, const_cast<char*>("join"),
             const_cast<char*>("O"), (PyObject*)camera_trace));
         if (PyUnicode_CheckExact(final_string))
           {
         vtkSmartPyObject final_string(PyObject_CallMethod(ret, const_cast<char*>("join"),
             const_cast<char*>("O"), (PyObject*)camera_trace));
         if (PyUnicode_CheckExact(final_string))
           {
-            QString camera_qs(Py_EncodeLocale(PyUnicode_AS_UNICODE(final_string.GetPointer()), NULL));  // deep copy
+            QString camera_qs(Py_EncodeLocale(PyUnicode_AsWideCharString(final_string.GetPointer(),NULL), NULL));  // deep copy
             traceString = traceString + end_line  + end_line + QString("#### saving camera placements for all active views")
                 + end_line + end_line + camera_qs + end_line;
           }
             traceString = traceString + end_line  + end_line + QString("#### saving camera placements for all active views")
                 + end_line + end_line + camera_qs + end_line;
           }