Mercurial > hg > svgui
diff view/Pane.cpp @ 192:fcc043f75c41
* Avoid unnecessary work and updates when an invisible thumbwheel changes
author | Chris Cannam |
---|---|
date | Wed, 24 Jan 2007 17:14:24 +0000 |
parents | 5b7472db612b |
children | 942cfa1df966 |
line wrap: on
line diff
--- a/view/Pane.cpp Mon Jan 22 16:09:03 2007 +0000 +++ b/view/Pane.cpp Wed Jan 24 17:14:24 2007 +0000 @@ -62,6 +62,8 @@ { Profiler profiler("Pane::updateHeadsUpDisplay", true); + if (!isVisible()) return; + /* int count = 0; int currentLevel = 1; @@ -1591,6 +1593,9 @@ void Pane::zoomLevelChanged() { + std::cerr << "Pane[" << this << "]::zoomLevelChanged (global now " + << (m_manager ? m_manager->getGlobalZoom() : 0) << ")" << std::endl; + if (m_manager && m_manager->getZoomWheelsEnabled()) { updateHeadsUpDisplay(); }