From: jfa Date: Fri, 3 Feb 2006 12:43:26 +0000 (+0000) Subject: PAL11498: Patch to import tables with tabulation separated values. A fix by Erwan... X-Git-Tag: mergeto_trunk_07Feb06~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0023df4a183e182d3f5ae36a2d4980fc416e4347;p=modules%2Fvisu.git PAL11498: Patch to import tables with tabulation separated values. A fix by Erwan ADAM. --- diff --git a/src/VISU_I/VISU_Table_i.cc b/src/VISU_I/VISU_Table_i.cc index 00e6a6f9..4f0151bf 100644 --- a/src/VISU_I/VISU_Table_i.cc +++ b/src/VISU_I/VISU_Table_i.cc @@ -39,6 +39,7 @@ #include #include +#include #include using namespace std; @@ -1160,7 +1161,8 @@ void ImportTables(const char* theFileName, TTableCont& theTableCont){ aRow.myTitle = cmt.latin1(); if(MYDEBUG) cout << "......ROW TITLE is: " << cmt.latin1() << endl; } - QStringList aValList = QStringList::split( " ", data ); + QString datar1 = data.replace(QRegExp("\t"), " "); + QStringList aValList = QStringList::split( " ", datar1 ); for ( int i = 0; i < aValList.count(); i++ ) { if ( aValList[i].stripWhiteSpace() != "" ) { TValue aVal = aValList[i].stripWhiteSpace().latin1();