changeset 110:c1188c5a991d

* Remove selection extents labels if no text overlays * Number instants added by hitting Enter etc
author Chris Cannam
date Mon, 08 May 2006 20:15:23 +0000
parents 61a2ac1241b3
children 1be256ac7681
files base/View.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/base/View.cpp	Mon May 08 16:44:47 2006 +0000
+++ b/base/View.cpp	Mon May 08 20:15:23 2006 +0000
@@ -1403,7 +1403,8 @@
 	    paint.restore();
 	}
 
-	if (sampleRate && shouldLabelSelections()) {
+	if (sampleRate && shouldLabelSelections() && m_manager &&
+            m_manager->getOverlayMode() != ViewManager::NoOverlays) {
 	    
 	    QString startText = QString("%1 / %2")
 		.arg(QString::fromStdString