From 0023df4a183e182d3f5ae36a2d4980fc416e4347 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 3 Feb 2006 12:43:26 +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 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(); -- 2.39.2