summaryrefslogtreecommitdiff
path: root/gtk2_ardour/canvas-note-event.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-05-16 03:11:28 +0000
committerDavid Robillard <d@drobilla.net>2008-05-16 03:11:28 +0000
commitcb94baf6f4033b79fcb61da2de90b4d9c478d152 (patch)
treeb813add107739b9aa36e5b74f07a0801603df19d /gtk2_ardour/canvas-note-event.h
parentf53baec2e4ad1e40f76a5efc1d90cbc6dcef0326 (diff)
Fix invalid error message during MIDI recording (or files with stuck notes).
Handle stuck notes more gracefully in the view (probably should show up as a diamond though?). git-svn-id: svn://localhost/ardour2/branches/3.0@3359 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note-event.h')
-rw-r--r--gtk2_ardour/canvas-note-event.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/canvas-note-event.h b/gtk2_ardour/canvas-note-event.h
index f575808bb1..776d89160d 100644
--- a/gtk2_ardour/canvas-note-event.h
+++ b/gtk2_ardour/canvas-note-event.h
@@ -81,7 +81,7 @@ public:
virtual double x2() = 0;
virtual double y2() = 0;
- const boost::shared_ptr<ARDOUR::Note> note() { return _note; }
+ const boost::shared_ptr<ARDOUR::Note> note() const { return _note; }
protected:
enum State { None, Pressed, Dragging };