#include "ardour/region_factory.h"
#include "ardour/session.h"
#include "ardour/smf_source.h"
+#include "ardour/evoral_types_convert.h"
#include "gui_thread.h"
#include "midi_region_view.h"
double h = y - prev_y;
double mid = y + (h/2.0);
- if (height > 1.0) { // XXX ? should that not be h >= 1 ?
+ if (mid >= 0 && h > 1.0) {
_note_lines->add (mid, h, color);
}
{
// cerr << _trackview.name() << " streamview SRB\n";
- if (_trackview.session()->transport_rolling()) {
+ if (!_trackview.session()->transport_stopped()) {
if (!rec_active &&
_trackview.session()->record_status() == Session::Recording &&