Mercurial > hg > svgui
diff layer/TimeValueLayer.cpp @ 455:747a58d45d56
* Fix incorrect starting extents in derived note & time-value layers
(happening when top==bottom==0 and thus recalculated from model
extents before model is complete)
author | Chris Cannam |
---|---|
date | Mon, 01 Dec 2008 16:45:17 +0000 |
parents | 4a14499fb184 |
children | 0990b95140e3 |
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp Fri Nov 28 13:36:13 2008 +0000 +++ b/layer/TimeValueLayer.cpp Mon Dec 01 16:45:17 2008 +0000 @@ -267,8 +267,9 @@ if (!m_model || shouldAutoAlign()) return false; if (m_scaleMinimum == m_scaleMaximum) { - m_scaleMinimum = m_model->getValueMinimum(); - m_scaleMaximum = m_model->getValueMaximum(); + min = m_model->getValueMinimum(); + max = m_model->getValueMaximum(); + return true; } min = m_scaleMinimum;