diff view/View.cpp @ 841:532302d04571

Add const version of this accessor
author Chris Cannam
date Tue, 02 Sep 2014 16:18:26 +0100
parents 757b7baac614
children ee36642b9b59
line wrap: on
line diff
--- a/view/View.cpp	Tue Sep 02 16:14:22 2014 +0100
+++ b/view/View.cpp	Tue Sep 02 16:18:26 2014 +0100
@@ -666,6 +666,12 @@
     return 0;
 }
 
+const Layer *
+View::getInteractionLayer() const
+{
+    return const_cast<const Layer *>(const_cast<View *>(this)->getInteractionLayer());
+}
+
 Layer *
 View::getSelectedLayer()
 {