From: Artem Zhidkov Date: Wed, 29 Jul 2020 09:21:51 +0000 (+0300) Subject: Issue #3275: Cannot load script. Unicode error X-Git-Tag: V9_6_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0206b712c3b390c1f8f4d338c774f6c603476c3;p=modules%2Fshaper.git Issue #3275: Cannot load script. Unicode error --- 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();