This is an automated email from the git hooks/post-receive script. sebastic-guest pushed a commit to branch upstream-master in repository pktools.
commit 72cb03719dedb9615a9fe95cceb82db9655ffcc9 Author: Pieter Kempeneers <kempe...@gmail.com> Date: Wed Mar 27 18:15:16 2013 +0100 wrong throw case in FileReaderAscii.h --- src/fileclasses/FileReaderAscii.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileclasses/FileReaderAscii.h b/src/fileclasses/FileReaderAscii.h index c21a270..5dcd430 100644 --- a/src/fileclasses/FileReaderAscii.h +++ b/src/fileclasses/FileReaderAscii.h @@ -100,7 +100,7 @@ template<class T> unsigned int FileReaderAscii::readData(std::vector<T> &dataVec } if(verbose) std::cout << std::endl; - if(dataVector.size()&&ncol>=col){ + if(dataVector.size()&&ncol<=col){ std::ostringstream ess; ess << "Error: different number of cols found in line " << nrow << " (" << ncol << ")" << std::endl; throw(ess.str()); @@ -155,7 +155,7 @@ template<class T> unsigned int FileReaderAscii::readData(std::vector<T> &dataVec std::cout << std::endl; if(verbose) std::cout << "number of columns: " << ncol << std::endl; - if(dataVector.size()&&ncol>=col){ + if(dataVector.size()&&ncol<=col){ std::ostringstream ess; ess << "Error: different number of cols found in line " << nrow << " (" << ncol << ")" << std::endl; throw(ess.str()); -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pktools.git _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel