Disallow midi-note duration changes beyond region boundaries
authorRobin Gareus <robin@gareus.org>
Tue, 21 Oct 2014 13:12:13 +0000 (15:12 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 22 Oct 2014 13:14:32 +0000 (09:14 -0400)
commit5c198cd903b84ccff298122951e393c58bebec7b
treee56830a971fcec4dd50624d5eb728dbe83c66e3c
parent4118873b6640dcab59853cc6ad2ef2ed473b1f6a
Disallow midi-note duration changes beyond region boundaries

Fixes crash/assert with negative Beats.

TODO discuss alternative:
 automatically extend/trim region (if possible) or
 accept but hide notes that are out of bounds. That would need
 some solution for ghost notes which still can have negative Beats
 while dragging.
gtk2_ardour/midi_region_view.cc