diff options
author | Len Ovens <len@ovenwerks.net> | 2016-07-01 18:31:13 -0700 |
---|---|---|
committer | Len Ovens <len@ovenwerks.net> | 2016-07-01 18:31:13 -0700 |
commit | 6ed733638401ba3674c85bda678608925a82a4ed (patch) | |
tree | eb6c3818a8819324adaf652a185edfcec8965a80 /libs | |
parent | 3491f22c0448d78d0d0134e482642a0740c56d82 (diff) |
OSC: make sure out of bank strip can not be converted to a stripable.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/osc/osc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/surfaces/osc/osc.cc b/libs/surfaces/osc/osc.cc index 68b51a96d0..949cbf09e0 100644 --- a/libs/surfaces/osc/osc.cc +++ b/libs/surfaces/osc/osc.cc @@ -1486,7 +1486,7 @@ boost::shared_ptr<ARDOUR::Stripable> OSC::get_strip (uint32_t ssid, lo_address addr) { OSCSurface *s = get_surface(addr); - if ((ssid + s->bank - 2) < s->nstrips) { + if (ssid && ((ssid + s->bank - 2) < s->nstrips)) { return s->strips[ssid + s->bank - 2]; } // guess it is out of range |