From: dmv Date: Thu, 4 Feb 2010 10:26:10 +0000 (+0000) Subject: IPAL21560 5x incorrect 3d re-presentation of "sinus" table X-Git-Tag: V5_1_main_20100210~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43f379920d4ddbb33c45399e86296f4587e623b9;p=modules%2Fvisu.git IPAL21560 5x incorrect 3d re-presentation of "sinus" table --- diff --git a/src/CONVERTOR/Makefile.am b/src/CONVERTOR/Makefile.am index 0e40c9e9..504233b8 100644 --- a/src/CONVERTOR/Makefile.am +++ b/src/CONVERTOR/Makefile.am @@ -97,6 +97,7 @@ libVisuConvertor_la_LDFLAGS= \ $(BOOST_LIB_DATE_TIME) \ $(VTK_LIBS) \ $(QT_LIBS) \ + $(KERNEL_LDFLAGS) -lSALOMEBasics \ $(CAS_KERNEL) \ $(CAS_MATH) \ $(MED_LDFLAGS) -lMEDWrapper -lMEDWrapper_V2_2 -lMEDWrapper_V2_1 -lMEDWrapperBase \ diff --git a/src/CONVERTOR/VISU_TableReader.cxx b/src/CONVERTOR/VISU_TableReader.cxx index caeb9ac9..cb431dab 100644 --- a/src/CONVERTOR/VISU_TableReader.cxx +++ b/src/CONVERTOR/VISU_TableReader.cxx @@ -45,6 +45,8 @@ #include #include +#include + #ifdef _DEBUG_ static int MYDEBUG = 0; #else @@ -303,6 +305,9 @@ void VISU::TTableIDMapper ::SetXAxisPosition( vtkIdType theAxisPosition ) { + // Set "C" numeric locale to import numbers correctly + Kernel_Utils::Localizer loc; + if ( myXAxisPosition == theAxisPosition || !Check() ) return; diff --git a/src/VISU_I/VISU_Table_i.cc b/src/VISU_I/VISU_Table_i.cc index 80a3a484..fa9e334a 100644 --- a/src/VISU_I/VISU_Table_i.cc +++ b/src/VISU_I/VISU_Table_i.cc @@ -39,6 +39,8 @@ #include "utilities.h" +#include + using namespace std; #ifdef _DEBUG_ @@ -1196,6 +1198,9 @@ SALOMEDS::SObject_var VISU::Container_i::GetSObject() SALOMEDS::SObject_var VISU::ImportTables(const char* theFileName, SALOMEDS::Study_ptr theStudy) { + // Set "C" numeric locale to import numbers correctly + Kernel_Utils::Localizer loc; + TTableContainer aContainer; ImportTables( theFileName, aContainer ); if ( aContainer.empty() ) @@ -1263,6 +1268,9 @@ template bool ExportTableToFile(const TTableAttr& aTabAttr, if (CORBA::is_nil(aTabAttr)) return false; + // Set "C" numeric locale to save numbers correctly + Kernel_Utils::Localizer loc; + QFile aFile(theFileName); aFile.open(QIODevice::WriteOnly);