diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-05 23:00:49 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-05 23:00:49 +0000 |
commit | f649d775bc4f1e8721214e81619099de46810783 (patch) | |
tree | 8d07557453dd81462f8963afe247234403fb557a /gtk2_ardour/canvas-note.h | |
parent | fb2ef7cb9a6d903181da3b1d4681dc3faa778d1a (diff) |
prevent trim cursors appearing, and prevent note trimming, when in a MIDI note that is too small on-screen. avoids silliness with trim cursors appearing while drawing small notes on screen, though really, it would nice to avoid them appearing ever in a note that was just added. not sure how to do that.
git-svn-id: svn://localhost/ardour2/branches/3.0@9077 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.h')
-rw-r--r-- | gtk2_ardour/canvas-note.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/canvas-note.h b/gtk2_ardour/canvas-note.h index 49a37c17c9..3148a38c95 100644 --- a/gtk2_ardour/canvas-note.h +++ b/gtk2_ardour/canvas-note.h @@ -39,10 +39,10 @@ class CanvasNote : public SimpleRect, public CanvasNoteEvent const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>(), bool with_events = true); - double x1() { return property_x1(); } - double y1() { return property_y1(); } - double x2() { return property_x2(); } - double y2() { return property_y2(); } + double x1() const { return property_x1(); } + double y1() const { return property_y1(); } + double x2() const { return property_x2(); } + double y2() const { return property_y2(); } void set_outline_color(uint32_t c) { property_outline_color_rgba() = c; hide(); show(); } void set_fill_color(uint32_t c) { property_fill_color_rgba() = c; hide(); show(); } |