summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ghostregion.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-11-17 22:15:50 +0000
committerCarl Hetherington <carl@carlh.net>2011-11-17 22:15:50 +0000
commitfecf120f1e778f1a2344e0adcaf3aed0b0c4e5e3 (patch)
tree449dbba02447dd9d4031df532bd47fdc6d19859e /gtk2_ardour/ghostregion.h
parent597a65641869b113f02b73f6bcf41a9757164953 (diff)
Remove ghost notes when actual notes are deleted, and ensure the _optimization_iterator is valid even after things have been removed from the list (should fix #4483).
git-svn-id: svn://localhost/ardour2/branches/3.0@10659 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ghostregion.h')
-rw-r--r--gtk2_ardour/ghostregion.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/ghostregion.h b/gtk2_ardour/ghostregion.h
index 103d7ecf97..50924619ff 100644
--- a/gtk2_ardour/ghostregion.h
+++ b/gtk2_ardour/ghostregion.h
@@ -105,12 +105,13 @@ public:
void add_note(ArdourCanvas::CanvasNote*);
void update_note (ArdourCanvas::CanvasNote *);
+ void remove_note (ArdourCanvas::CanvasNoteEvent *);
void clear_events();
private:
- MidiGhostRegion::Event* find_event (ArdourCanvas::CanvasNote *);
+ MidiGhostRegion::Event* find_event (ArdourCanvas::CanvasNoteEvent *);
typedef std::list<MidiGhostRegion::Event*> EventList;
EventList events;