summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_selectable.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/automation_selectable.h')
-rw-r--r--gtk2_ardour/automation_selectable.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/automation_selectable.h b/gtk2_ardour/automation_selectable.h
index 851da8bf79..92e73a3c33 100644
--- a/gtk2_ardour/automation_selectable.h
+++ b/gtk2_ardour/automation_selectable.h
@@ -31,17 +31,17 @@ struct AutomationSelectable : public Selectable
nframes_t end;
double low_fract;
double high_fract;
- TimeAxisView& track;
+ TimeAxisView* track; // ref would be better, but ARDOUR::SessionHandlePtr is non-assignable
- AutomationSelectable (nframes_t s, nframes_t e, double l, double h, TimeAxisView& atv)
+ AutomationSelectable (nframes_t s, nframes_t e, double l, double h, TimeAxisView* atv)
: start (s), end (e), low_fract (l), high_fract (h), track (atv) {}
bool operator== (const AutomationSelectable& other) {
return start == other.start &&
- end == other.end &&
- low_fract == other.low_fract &&
- high_fract == other.high_fract &&
- &track == &other.track;
+ end == other.end &&
+ low_fract == other.low_fract &&
+ high_fract == other.high_fract &&
+ track == other.track;
}
};