'gtk2_ardour' - In 'Note' c'tor, don't try to set 'rectangle->name' unless 'CANVAS_DEBUG' is defined

This commit is contained in:
John Emmas 2013-10-06 11:00:10 +01:00
parent e93c425d6f
commit df2b5c90e4
1 changed files with 2 additions and 0 deletions

View File

@ -36,7 +36,9 @@ Note::Note (
: NoteBase (region, with_events, note)
{
_rectangle = new ArdourCanvas::Rectangle (group);
#ifdef CANVAS_DEBUG
_rectangle->name = "note";
#endif
set_item (_rectangle);
}