mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
fix missing Hit destructor, which left polygons all over the canvas after deleting the Hit object(s)
This commit is contained in:
parent
41c4c41eaa
commit
fa5529b694
2 changed files with 12 additions and 7 deletions
|
|
@ -39,6 +39,11 @@ Hit::Hit (MidiRegionView& region, Group* group, double size, const boost::shared
|
|||
set_height (size);
|
||||
}
|
||||
|
||||
Hit::~Hit ()
|
||||
{
|
||||
delete _polygon;
|
||||
}
|
||||
|
||||
void
|
||||
Hit::move_event (double dx, double dy)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
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 show ();
|
||||
void hide ();
|
||||
|
||||
ArdourCanvas::Coord x0 () const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue