diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-24 20:44:33 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-05-24 20:44:33 +0200 |
commit | cb896a4fa1acd9167d3e7ee9f6336a63309eebde (patch) | |
tree | 650337e053b670ba1f67d8b2f6da03d43fb0cda0 /src/selection.cc | |
parent | 5f3f9fabf5ad2e1cda638612c3cf863045765a3b (diff) |
Add save/load of selections/regions in instruments.
Diffstat (limited to 'src/selection.cc')
-rw-r--r-- | src/selection.cc | 12 |
1 files changed, 12 insertions, 0 deletions
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++; |