Mercurial > hg > svgui
diff view/View.cpp @ 217:bd2d0346da0e
* Inhibit making and displaying time selections in slice layers
author | Chris Cannam |
---|---|
date | Mon, 05 Mar 2007 10:53:41 +0000 |
parents | 34bbbcb3c01f |
children | cd81066ac7ad |
line wrap: on
line diff
--- a/view/View.cpp Fri Mar 02 14:00:12 2007 +0000 +++ b/view/View.cpp Mon Mar 05 10:53:41 2007 +0000 @@ -1071,6 +1071,15 @@ return false; } +bool +View::hasTopLayerTimeXAxis() const +{ + LayerList::const_iterator i = m_layers.end(); + if (i == m_layers.begin()) return false; + --i; + return (*i)->hasTimeXAxis(); +} + void View::zoom(bool in) { @@ -1435,6 +1444,8 @@ void View::drawSelections(QPainter &paint) { + if (!hasTopLayerTimeXAxis()) return; + MultiSelection::SelectionList selections; if (m_manager) {