From a0206b712c3b390c1f8f4d338c774f6c603476c3 Mon Sep 17 00:00:00 2001 From: Artem Zhidkov Date: Wed, 29 Jul 2020 12:21:51 +0300 Subject: [PATCH] Issue #3275: Cannot load script. Unicode error --- src/SHAPERGUI/SHAPERGUI_DataModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp index ebb553221..e6a397b49 100644 --- a/src/SHAPERGUI/SHAPERGUI_DataModel.cpp +++ b/src/SHAPERGUI/SHAPERGUI_DataModel.cpp @@ -230,7 +230,7 @@ bool SHAPERGUI_DataModel::dumpPython(const QString& thePath, CAM_Study* theStudy return false; QTextStream aOut(&aOutFile); - aOut << aTrace.toStdString().c_str() << "\n"; + aOut << aTrace << "\n"; aOut.flush(); aOutFile.close(); -- 2.39.2