need another one for the missing bit.
*/
- CacheEntry* c = new CacheEntry (this, p, (*cache)->start());
+ CacheEntry* c = new CacheEntry (this, p, min (end, (*cache)->start()));
cache = _cache.insert (cache, c);
++cache;
render = c;
/** Construct a new CacheEntry with peak data between two offsets
* in the source.
*/
-WaveView::CacheEntry::CacheEntry (
- WaveView const * wave_view,
- int start,
- int end
- )
+WaveView::CacheEntry::CacheEntry (WaveView const * wave_view, int start, int end)
: _wave_view (wave_view)
, _start (start)
, _end (end)