From: dmv Date: Tue, 11 May 2010 14:34:45 +0000 (+0000) Subject: 0020868: EDF 1251 SMESH: Pattern 3D mapping X-Git-Tag: V5_1_4~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed467c6060a3eeb35ff61deb5a95b2d39c02a831;p=modules%2Fsmesh.git 0020868: EDF 1251 SMESH: Pattern 3D mapping --- diff --git a/src/SMESH/SMESH_Pattern.cxx b/src/SMESH/SMESH_Pattern.cxx index c3a9126a3..43ee8669d 100644 --- a/src/SMESH/SMESH_Pattern.cxx +++ b/src/SMESH/SMESH_Pattern.cxx @@ -73,6 +73,7 @@ #include "SMESH_MesherHelper.hxx" #include "SMESH_subMesh.hxx" +#include #include "utilities.h" using namespace std; @@ -210,6 +211,8 @@ bool SMESH_Pattern::Load (const char* theFileContents) { MESSAGE("Load( file ) "); + Kernel_Utils::Localizer loc; + // file structure: // ! This is a comment @@ -353,6 +356,9 @@ bool SMESH_Pattern::Load (const char* theFileContents) bool SMESH_Pattern::Save (ostream& theFile) { MESSAGE(" ::Save(file) " ); + + Kernel_Utils::Localizer loc; + if ( !IsLoaded() ) { MESSAGE(" Pattern not loaded "); return setErrorCode( ERR_SAVE_NOT_LOADED );