]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
#17959 [CEA 17951] MG-HEXA segments MIN/MAX parameters not saved: 9.3.0 and in 9...
authorvsr <vsr@opencascade.com>
Fri, 8 Nov 2019 13:33:07 +0000 (16:33 +0300)
committervsr <vsr@opencascade.com>
Fri, 8 Nov 2019 13:35:08 +0000 (16:35 +0300)
src/SMESH_I/SMESH_Gen_i.cxx
src/SMESH_I/SMESH_PythonDump.cxx

index a66cb766e43b8a1fbb478f8deadc4439df0839a2..aa3564d27746ab7c155a68ba10b9dd96dd9b26b0 100644 (file)
@@ -4034,6 +4034,9 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent,
                                       const char*              theURL,
                                       bool                     isMultiFile )
 {
+  // localizing
+  Kernel_Utils::Localizer loc;
+
   if (!myStudyContext)
     UpdateStudy();
 
@@ -5048,6 +5051,9 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
                         const char*              theURL,
                         bool                     isMultiFile )
 {
+  // localizing
+  Kernel_Utils::Localizer loc;
+
   //if (!myStudyContext)
     UpdateStudy();
   SALOMEDS::Study_var aStudy = getStudyServant();
index e1033e3bd87875bb3d9a294bec6407f0a1c3ed87..93559ab3643b1e61b90ed4eced321dcfb5ec6102 100644 (file)
@@ -32,6 +32,7 @@
 #include "SMESH_Gen_i.hxx"
 #include "SMESH_MeshEditor_i.hxx"
 
+#include <Basics_Utils.hxx>
 #include <SALOMEDS_wrap.hxx>
 
 #include <LDOMParser.hxx>
@@ -699,6 +700,9 @@ Engines::TMPFile* SMESH_Gen_i::DumpPython (CORBA::Boolean  isPublished,
                                            CORBA::Boolean  isMultiFile,
                                            CORBA::Boolean& isValidScript)
 {
+  // localizing
+  Kernel_Utils::Localizer loc;
+
   SALOMEDS::Study_var aStudy = getStudyServant();
   if (CORBA::is_nil(aStudy))
     return new Engines::TMPFile(0);