summaryrefslogtreecommitdiff
path: root/gtk2_ardour/hit.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-06 23:17:04 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-06 23:17:04 -0500
commitfa5529b694ad4a75a9a1260a2c8416166a4ae7c1 (patch)
treebd93ad11d9eb8582c4fbac90e49bac1a9fe17f7d /gtk2_ardour/hit.h
parent41c4c41eaa09a7d831988af828dd040499130bf1 (diff)
fix missing Hit destructor, which left polygons all over the canvas after deleting the Hit object(s)
Diffstat (limited to 'gtk2_ardour/hit.h')
-rw-r--r--gtk2_ardour/hit.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gtk2_ardour/hit.h b/gtk2_ardour/hit.h
index 3afdd91367..0ce1c93634 100644
--- a/gtk2_ardour/hit.h
+++ b/gtk2_ardour/hit.h
@@ -32,14 +32,14 @@ class Hit : public NoteBase
public:
typedef Evoral::Note<double> NoteType;
- Hit (
- MidiRegionView& region,
- ArdourCanvas::Group* group,
- double size,
- const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
- bool with_events = true);
-
- void show ();
+ Hit (MidiRegionView& region,
+ ArdourCanvas::Group* group,
+ double size,
+ const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(),
+ bool with_events = true);
+ ~Hit();
+
+ void show ();
void hide ();
ArdourCanvas::Coord x0 () const;