# HG changeset patch # User Chris Cannam # Date 1224865317 0 # Node ID 76cd1c89eb06e6922179a6417e07292b54b4fe0e # Parent 755243c67f599178b657e32bc5e8ea6a08807c0b * minor tidy diff -r 755243c67f59 -r 76cd1c89eb06 layer/TimeValueLayer.cpp --- a/layer/TimeValueLayer.cpp Fri Oct 24 14:52:40 2008 +0000 +++ b/layer/TimeValueLayer.cpp Fri Oct 24 16:21:57 2008 +0000 @@ -67,6 +67,9 @@ connectSignals(m_model); + m_scaleMinimum = 0; + m_scaleMaximum = 0; + // std::cerr << "TimeValueLayer::setModel(" << model << ")" << std::endl; emit modelReplaced(); @@ -292,7 +295,7 @@ m_scaleMinimum = min; m_scaleMaximum = max; - std::cerr << "TimeValueLayer::setDisplayExtents: min = " << min << ", max = " << max << std::endl; +// std::cerr << "TimeValueLayer::setDisplayExtents: min = " << min << ", max = " << max << std::endl; emit layerParametersChanged(); return true; diff -r 755243c67f59 -r 76cd1c89eb06 view/Pane.cpp --- a/view/Pane.cpp Fri Oct 24 14:52:40 2008 +0000 +++ b/view/Pane.cpp Fri Oct 24 16:21:57 2008 +0000 @@ -2137,8 +2137,8 @@ float y1 = y0 + h; float newmax = vmin + ((1.0 - y0) * (vmax - vmin)); float newmin = vmin + ((1.0 - y1) * (vmax - vmin)); - std::cerr << "verticalPannerMoved: (" << x0 << "," << y0 << "," << w - << "," << h << ") -> (" << newmin << "," << newmax << ")" << std::endl; +// std::cerr << "verticalPannerMoved: (" << x0 << "," << y0 << "," << w +// << "," << h << ") -> (" << newmin << "," << newmax << ")" << std::endl; setTopLayerDisplayExtents(newmin, newmax); } diff -r 755243c67f59 -r 76cd1c89eb06 widgets/Panner.cpp --- a/widgets/Panner.cpp Fri Oct 24 14:52:40 2008 +0000 +++ b/widgets/Panner.cpp Fri Oct 24 16:21:57 2008 +0000 @@ -156,15 +156,15 @@ paint.setPen(palette().dark().color()); paint.setBrush(bg); - paint.drawRect(0, 0, width(), height()); + paint.drawRect(0, 0, width()-1, height()-1); QColor hl(m_thumbColour); hl.setAlpha(m_thumbAlpha); paint.setBrush(hl); - int rw = lrintf(width() * m_rectWidth); - int rh = lrintf(height() * m_rectHeight); + int rw = lrintf((width() - 1) * m_rectWidth); + int rh = lrintf((height() - 1) * m_rectHeight); if (rw < 2) rw = 2; if (rh < 2) rh = 2;