X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fnote.cc;h=6e1878afc0651c23b3d7bba5b34288693202185f;hb=994df3aaa370125d3fa442baa38392a32c640e69;hp=bc10d79d8b0c4ab4cd9eb37fdd6c72a72a24ffc9;hpb=2588b1cac9a50353c65c671ee2a5efe569b96c36;p=ardour.git diff --git a/gtk2_ardour/note.cc b/gtk2_ardour/note.cc index bc10d79d8b..6e1878afc0 100644 --- a/gtk2_ardour/note.cc +++ b/gtk2_ardour/note.cc @@ -32,7 +32,7 @@ using namespace ArdourCanvas; Note::Note ( MidiRegionView& region, Item* parent, const boost::shared_ptr note, bool with_events) : NoteBase (region, with_events, note) - , _rectangle (new ArdourCanvas::TimeRectangle (parent)) + , _rectangle (new ArdourCanvas::Rectangle (parent)) { CANVAS_DEBUG_NAME (_rectangle, "note"); set_item (_rectangle); @@ -97,6 +97,12 @@ Note::hide () _rectangle->hide (); } +void +Note::set (ArdourCanvas::Rect rect) +{ + _rectangle->set (rect); +} + void Note::set_x0 (Coord x0) {