From: Derek Date: Thu, 15 Jul 2010 18:04:16 +0000 (-0400) Subject: Fixed Rewind(). Now using LoadNextAlignment() instead of GetNextAlignmentCore()... X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f6288f9f90747418a5d3c61b7713bee8e3a16112;p=bamtools.git Fixed Rewind(). Now using LoadNextAlignment() instead of GetNextAlignmentCore(). GNAC() does region checks which, in this case of clearing prior region data, are unnecessary at best and most likely erroneous. --- diff --git a/BamReader.cpp b/BamReader.cpp index f67a2e6..be6b72b 100644 --- a/BamReader.cpp +++ b/BamReader.cpp @@ -737,7 +737,7 @@ bool BamReader::BamReaderPrivate::Rewind(void) { // retrieve first alignment data BamAlignment al; - if ( !GetNextAlignmentCore(al) ) return false; + if ( !LoadNextAlignment(al) ) return false; // reset default region info using first alignment in file Region.LeftRefID = al.RefID;