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
@ -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…
Reference in New Issue
Block a user