From: westcott Date: Fri, 19 Jun 2009 18:15:30 +0000 (+0000) Subject: version 1.4 X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=commitdiff_plain;h=99bd02d78eaf21b01420c6f99e38efc7fa4e9e17 version 1.4 --- diff --git a/sharedordervector.cpp b/sharedordervector.cpp index d0c97f9..a009db1 100644 --- a/sharedordervector.cpp +++ b/sharedordervector.cpp @@ -57,9 +57,6 @@ SharedOrderVector::SharedOrderVector(ifstream& f) : DataVector() { //reads in a } } - //save position in file in case next line is a new label. - pos = f.tellg(); - if (f.eof() != true) { f >> nextLabel; } //read the rest of the groups info in @@ -82,15 +79,13 @@ SharedOrderVector::SharedOrderVector(ifstream& f) : DataVector() { //reads in a } } - //save position in file in case next line is a new label. - pos = f.tellg(); - + if (f.eof() != true) { f >> nextLabel; } } //put file pointer back since you are now at a new distance label - f.seekg(pos, ios::beg); + for (int i = 0; i < nextLabel.length(); i++) { f.unget(); } if (globaldata->gGroupmap == NULL) { globaldata->gGroupmap = groupmap; }