diff layer/TimeRulerLayer.cpp @ 919:a5488775f880 osx-retina

Pass proxy to layer for painting
author Chris Cannam
date Wed, 18 Mar 2015 13:52:07 +0000
parents 4fe7a09be0fe
children 2adca8f05583
line wrap: on
line diff
--- a/layer/TimeRulerLayer.cpp	Tue Mar 17 16:56:03 2015 +0000
+++ b/layer/TimeRulerLayer.cpp	Wed Mar 18 13:52:07 2015 +0000
@@ -309,7 +309,7 @@
             if (v->getViewManager() && v->getViewManager()->getOverlayMode() !=
                 ViewManager::NoOverlays) {
 
-                if (v->getLayer(0) == this) {
+                if (v->getView()->getLayer(0) == this) {
                     // backmost layer, don't worry about outlining the text
                     paint.drawText(x+2 - tw/2, y, text);
                 } else {