Salome HOME
IPAL21560 5x incorrect 3d re-presentation of "sinus" table
authordmv <dmv@opencascade.com>
Thu, 4 Feb 2010 10:26:10 +0000 (10:26 +0000)
committerdmv <dmv@opencascade.com>
Thu, 4 Feb 2010 10:26:10 +0000 (10:26 +0000)
src/CONVERTOR/Makefile.am
src/CONVERTOR/VISU_TableReader.cxx
src/VISU_I/VISU_Table_i.cc

index 0e40c9e9c316bd9dd8e00b454564f5b893913cee..504233b8bf6ae15e21b6d23e5e2cc0f4f5fcc403 100644 (file)
@@ -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 \
index caeb9ac915dfc54eb1b9f5d3c42ee78f387236b7..cb431dab5177bb53ca87649bf1772aa896ef6b67 100644 (file)
@@ -45,6 +45,8 @@
 #include <vtkStructuredGrid.h>
 #include <vtkStructuredGridGeometryFilter.h>
 
+#include <Basics_Utils.hxx>
+
 #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;
 
index 80a3a4848466d393cb81927226c5493ab2207a92..fa9e334a16874830a82516541661e5df93a38e46 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "utilities.h"
 
+#include <Basics_Utils.hxx>
+
 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<class TTableAttr> 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);