diff layer/WaveformLayer.cpp @ 195:4a3bdde1ef13

* beginnings of spectrum scales
author Chris Cannam
date Mon, 29 Jan 2007 18:11:20 +0000
parents 5b7472db612b
children 17f8d9cf60d7
line wrap: on
line diff
--- a/layer/WaveformLayer.cpp	Fri Jan 26 17:20:58 2007 +0000
+++ b/layer/WaveformLayer.cpp	Mon Jan 29 18:11:20 2007 +0000
@@ -592,7 +592,9 @@
         int n = 10;
         int py = -1;
         
-        if (v->hasLightBackground()) {
+        if (v->hasLightBackground() &&
+            v->getViewManager() &&
+            v->getViewManager()->shouldShowScaleGuides()) {
 
             paint->setPen(QColor(240, 240, 240));