# HG changeset patch # User Chris Cannam # Date 1235741596 0 # Node ID 4ba0476ebbb6fe3a086562d949ed1de51c46d462 # Parent 1341e95eeae93025479a20749ef551ea6afbd4a1 * Activity log updates * Update range lists in play source when a new model is added * Fill cache with empty background in colour 3d plot diff -r 1341e95eeae9 -r 4ba0476ebbb6 layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Thu Feb 26 16:58:25 2009 +0000 +++ b/layer/Colour3DPlotLayer.cpp Fri Feb 27 13:33:16 2009 +0000 @@ -796,11 +796,13 @@ m_cache = new QImage (cacheWidth, cacheHeight, QImage::Format_Indexed8); m_cache->setNumColors(256); + m_cache->fill(0); if (!m_normalizeVisibleArea) { m_peaksCache = new QImage (cacheWidth / m_peakResolution + 1, cacheHeight, QImage::Format_Indexed8); m_peaksCache->setNumColors(256); + m_peaksCache->fill(0); } else if (m_peaksCache) { delete m_peaksCache; m_peaksCache = 0; @@ -880,8 +882,6 @@ } } -// m_cache->fill(0); - float visibleMax = 0.f, visibleMin = 0.f; if (normalizeVisible) { @@ -986,10 +986,11 @@ 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; diff -r 1341e95eeae9 -r 4ba0476ebbb6 widgets/CommandHistory.cpp --- a/widgets/CommandHistory.cpp Thu Feb 26 16:58:25 2009 +0000 +++ b/widgets/CommandHistory.cpp Fri Feb 27 13:33:16 2009 +0000 @@ -37,7 +37,7 @@ #include -#define DEBUG_COMMAND_HISTORY 1 +//#define DEBUG_COMMAND_HISTORY 1 CommandHistory *CommandHistory::m_instance = 0;