Mercurial > hg > svgui
comparison layer/Colour3DPlotLayer.cpp @ 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 | 261a00010918 |
comparison
equal
deleted
inserted
replaced
1107:6d720fe1c8cc | 1108:edbe229860ac |
---|---|
178 Colour3DPlotLayer::cacheInvalid(sv_frame_t /* startFrame */, | 178 Colour3DPlotLayer::cacheInvalid(sv_frame_t /* startFrame */, |
179 sv_frame_t /* endFrame */) | 179 sv_frame_t /* endFrame */) |
180 { | 180 { |
181 //!!! should do this only if the range is visible | 181 //!!! should do this only if the range is visible |
182 delete m_peakCache; | 182 delete m_peakCache; |
183 m_peakCache = 0; | |
184 | |
183 invalidateRenderers(); | 185 invalidateRenderers(); |
184 } | 186 } |
185 | 187 |
186 void | 188 void |
187 Colour3DPlotLayer::invalidateRenderers() | 189 Colour3DPlotLayer::invalidateRenderers() |