diff --git a/gtk2_ardour/editing_context.h b/gtk2_ardour/editing_context.h index a59bfeb677..30028dcc68 100644 --- a/gtk2_ardour/editing_context.h +++ b/gtk2_ardour/editing_context.h @@ -833,8 +833,8 @@ class EditingContext : public ARDOUR::SessionHandlePtr, public AxisViewProvider, bool temporary_zoom_focus_change; bool _dragging_playhead; - std::shared_ptr _local_tempo_map; - void ensure_local_tempo_scope () { + mutable std::shared_ptr _local_tempo_map; + void ensure_local_tempo_scope () const { if (_local_tempo_map) { Temporal::TempoMap::set (_local_tempo_map); _local_tempo_map.reset ();