From 963a158d04bd0e2fdd3f8ffe638d11fc8ad110b5 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 3 Feb 2006 12:42:16 +0000 Subject: [PATCH] PAL11498: Patch to import tables with tabulation separated values. A fix by Erwan ADAM. --- src/VISU_I/VISU_Table_i.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); -- 2.39.2