Mercurial > hg > svgui
diff layer/FlexiNoteLayer.cpp @ 670:47735c9518e7 tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 16 Jul 2013 17:59:01 +0100 |
parents | layer/NoteLayer.cpp@2727bc3aab59 layer/NoteLayer.cpp@123ebecd12e6 |
children | 917039d333bb |
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp Tue Jul 16 14:45:55 2013 +0100 +++ b/layer/FlexiNoteLayer.cpp Tue Jul 16 17:59:01 2013 +0100 @@ -249,6 +249,10 @@ max = Pitch::getFrequencyForPitch(lrintf(max + 1)); } +#ifdef DEBUG_NOTE_LAYER + std::cerr << "NoteLayer::getDisplayExtents: min = " << min << ", max = " << max << " (m_scaleMinimum = " << m_scaleMinimum << ", m_scaleMaximum = " << m_scaleMaximum << ")" << std::endl; +#endif + return true; } @@ -268,7 +272,9 @@ m_scaleMinimum = min; m_scaleMaximum = max; -// SVDEBUG << "FlexiNoteLayer::setDisplayExtents: min = " << min << ", max = " << max << endl; +#ifdef DEBUG_NOTE_LAYER + std::cerr << "FlexiNoteLayer::setDisplayExtents: min = " << min << ", max = " << max << std::endl; +#endif emit layerParametersChanged(); return true; @@ -349,7 +355,9 @@ newmax = max; } - SVDEBUG << "FlexiNoteLayer::setVerticalZoomStep: " << step << ": " << newmin << " -> " << newmax << " (range " << newdist << ")" << endl; +#ifdef DEBUG_NOTE_LAYER + std::cerr << "FlexiNoteLayer::setVerticalZoomStep: " << step << ": " << newmin << " -> " << newmax << " (range " << newdist << ")" << std::endl; +#endif setDisplayExtents(newmin, newmax); } @@ -1579,7 +1587,7 @@ float min = attributes.value("scaleMinimum").toFloat(&ok); float max = attributes.value("scaleMaximum").toFloat(&alsoOk); - // if (ok && alsoOk) setDisplayExtents(min, max); +// if (ok && alsoOk && min != max) setDisplayExtents(min, max); } void