From 256cb7ee5ec6b6a71a1a5c8316aff1519a33730c Mon Sep 17 00:00:00 2001
From: Ulrich Kemloh <kemlohulrich@gmail.com>
Date: Fri, 10 Jul 2015 13:58:11 +0200
Subject: [PATCH] fixed error while parsing the txt file format

---
 src/SaxParser.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/SaxParser.cpp b/src/SaxParser.cpp
index 5b67dc0..4972b90 100644
--- a/src/SaxParser.cpp
+++ b/src/SaxParser.cpp
@@ -1387,7 +1387,7 @@ bool SaxParser::ParseTxtFormat(QString fileName, SyncData* dataset, double * fps
             bool ok;
             *fps=line.split(":")[1].toDouble(&ok);
             if(!ok) *fps=16;//default value
-            //cout<<"frame rate: "<<*fps<<endl; //exit(0);
+            qDebug()<<"frame rate: "<<*fps<<endl; //exit(0);
         }
 
         line = in.readLine();
@@ -1418,7 +1418,7 @@ bool SaxParser::ParseTxtFormat(QString fileName, SyncData* dataset, double * fps
         while ( !in.atEnd() )
         {
             QString line = in.readLine();
-            QStringList pieces = line.split( " ");
+            QStringList pieces = line.split(QRegExp("\\s"));
 
             double pos[3];
             double angle[3]={0,0,30};
-- 
GitLab