Mercurial > hg > svgui
diff view/Overview.cpp @ 274:b9380f679f70
* Fix centre line position
* Fix failure to update overview when generating peaks from wav file
* Provide y-coordinate scale values and differences for spectrum measurement
mode, and fix values for waveform (inc dB for both)
* Add Printer colour scheme (may be futile)
author | Chris Cannam |
---|---|
date | Mon, 02 Jul 2007 13:04:17 +0000 |
parents | 1b1e6947c124 |
children | cd2492c5fe45 |
line wrap: on
line diff
--- a/view/Overview.cpp Fri Jun 29 16:50:59 2007 +0000 +++ b/view/Overview.cpp Mon Jul 02 13:04:17 2007 +0000 @@ -33,6 +33,7 @@ m_followPan = false; m_followZoom = false; setPlaybackFollow(PlaybackIgnore); + m_modelTestTime.start(); } void @@ -50,13 +51,17 @@ } if (!zoomChanged) { - for (LayerList::const_iterator i = m_layers.begin(); - i != m_layers.end(); ++i) { - if ((*i)->getModel() && - !(*i)->getModel()->isOK() || - !(*i)->getModel()->isReady()) { - return; + if (m_modelTestTime.elapsed() < 1000) { + for (LayerList::const_iterator i = m_layers.begin(); + i != m_layers.end(); ++i) { + if ((*i)->getModel() && + !(*i)->getModel()->isOK() || + !(*i)->getModel()->isReady()) { + return; + } } + } else { + m_modelTestTime.restart(); } }