From: jfa Date: Fri, 3 Feb 2006 12:42:16 +0000 (+0000) Subject: PAL11498: Patch to import tables with tabulation separated values. A fix by Erwan... X-Git-Tag: T2_2_9pre X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=963a158d04bd0e2fdd3f8ffe638d11fc8ad110b5;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 d588e45c..27d7e464 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; @@ -1079,7 +1080,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();