From 99bd02d78eaf21b01420c6f99e38efc7fa4e9e17 Mon Sep 17 00:00:00 2001 From: westcott Date: Fri, 19 Jun 2009 18:15:30 +0000 Subject: [PATCH] version 1.4 --- sharedordervector.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; } -- 2.39.2