changeset 476:2613bc1b2823

* Avoid crash in StorageAdviser if temporary directory cannot be opened
author Chris Cannam
date Mon, 02 Feb 2009 17:07:47 +0000
parents 3f4b10e76ccd
children 92f4d88241b8
files layer/Colour3DPlotLayer.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;