changeset 1108:edbe229860ac spectrogram-minor-refactor

Fix failure to reinitialise m_peakCache
author Chris Cannam
date Thu, 14 Jul 2016 17:14:30 +0100
parents 6d720fe1c8cc
children 477521f95a84
files layer/Colour3DPlotLayer.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp	Thu Jul 14 17:12:08 2016 +0100
+++ b/layer/Colour3DPlotLayer.cpp	Thu Jul 14 17:14:30 2016 +0100
@@ -180,6 +180,8 @@
 {
     //!!! should do this only if the range is visible
     delete m_peakCache;
+    m_peakCache = 0;
+    
     invalidateRenderers();
 }