summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-05-25 00:00:11 +0000
committerCarl Hetherington <carl@carlh.net>2010-05-25 00:00:11 +0000
commitbd2cbe9e76b28d5cc3d9688c7df6c5206d6be771 (patch)
tree7ddd1fd68f1050dc56968ac5496cdf625407afa5 /gtk2_ardour/midi_region_view.h
parent943edf1b5dbc8cd16432636b5f95c6bcfebf2eb6 (diff)
Ensure a create note drag rectangle starts with both ends snapped,
otherwise it is possible to drag a note with a size large enough to be considered valid and smaller than half the grid distance. These get snapped to zero length and thus appear infinitely long in the view. A second try at fixing #3159. git-svn-id: svn://localhost/ardour2/branches/3.0@7151 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index 3417014b43..e7d00bcef4 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -281,7 +281,7 @@ class MidiRegionView : public RegionView
nframes64_t beats_to_frames(double beats) const;
/** Convert a timestamp in frames to beats (both relative to region start) */
- double frames_to_beats(nframes64_t beats) const;
+ double frames_to_beats(nframes64_t) const;
void goto_previous_note ();
void goto_next_note ();