diff data/fileio/WavFileReader.cpp @ 377:166c22eff678

* Ensure waveforms are strictly correct even when using a non-power-of-two non-power-of-sqrt-two block size with cacheing off and painting only small areas at a time
author Chris Cannam
date Thu, 07 Feb 2008 15:25:05 +0000
parents c324d410b096
children ecef2f1bec18
line wrap: on
line diff
--- a/data/fileio/WavFileReader.cpp	Thu Feb 07 12:36:59 2008 +0000
+++ b/data/fileio/WavFileReader.cpp	Thu Feb 07 15:25:05 2008 +0000
@@ -111,6 +111,7 @@
 {
     if (count == 0) return;
     results.clear();
+    results.reserve(count * m_fileInfo.channels);
 
     QMutexLocker locker(&m_mutex);