From cb896a4fa1acd9167d3e7ee9f6336a63309eebde Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 24 May 2018 20:44:33 +0200 Subject: Add save/load of selections/regions in instruments. --- src/selection.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/selection.cc') diff --git a/src/selection.cc b/src/selection.cc index 0b93fa2..e18e485 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -33,6 +33,18 @@ Selections::Selections() act = SEL_NONE; } +Selections::Selections(const Selections& other) +{ + *this = other; +} + +void Selections::operator=(const Selections& other) +{ + sels = other.sels; + nextid = other.nextid; + act = other.act; +} + sel_id_t Selections::add(Selection selection) { sel_id_t id = nextid++; -- cgit v1.2.3