# HG changeset patch # User Chris Cannam # Date 1233594467 0 # Node ID 2613bc1b28230e6d10a6ba5721a0a5202b0df748 # Parent 3f4b10e76ccdf5f053f5232dcd473cf981165bae * Avoid crash in StorageAdviser if temporary directory cannot be opened diff -r 3f4b10e76ccd -r 2613bc1b2823 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Thu Jan 29 14:55:57 2009 +0000 +++ b/layer/Colour3DPlotLayer.cpp Mon Feb 02 17:07:47 2009 +0000 @@ -746,6 +746,7 @@ Colour3DPlotLayer::fillCache(size_t firstBin, size_t lastBin) const { Profiler profiler("Colour3DPlotLayer::fillCache"); + size_t modelStart = m_model->getStartFrame(); size_t modelEnd = m_model->getEndFrame(); size_t modelResolution = m_model->getResolution(); @@ -954,11 +955,10 @@ void Colour3DPlotLayer::paint(View *v, QPainter &paint, QRect rect) const { -/*!!! if (m_model) { std::cerr << "Colour3DPlotLayer::paint: model says shouldUseLogValueScale = " << m_model->shouldUseLogValueScale() << std::endl; } -*/ + Profiler profiler("Colour3DPlotLayer::paint"); #ifdef DEBUG_COLOUR_3D_PLOT_LAYER_PAINT std::cerr << "Colour3DPlotLayer::paint(): m_model is " << m_model << ", zoom level is " << v->getZoomLevel() << std::endl;