'gtk2_ardour' - In 'Note' c'tor, don't try to set 'rectangle->name' unless 'CANVAS_DE...
authorJohn Emmas <johne53@tiscali.co.uk>
Sun, 6 Oct 2013 10:00:10 +0000 (11:00 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sun, 6 Oct 2013 10:00:10 +0000 (11:00 +0100)
gtk2_ardour/note.cc

index b072a75ca6b6dd8cbf728017b72f05bd1034211e..c9a60a7de93e7247277448b897c308ccee6bd416 100644 (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);
 }