From f6288f9f90747418a5d3c61b7713bee8e3a16112 Mon Sep 17 00:00:00 2001 From: Derek Date: Thu, 15 Jul 2010 14:04:16 -0400 Subject: [PATCH] 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. --- BamReader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5