diff options
author | Carl Hetherington <carl@carlh.net> | 2011-04-20 23:48:39 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-04-20 23:48:39 +0000 |
commit | e90e1cc771ac3c660e136db0cdc03e39524da895 (patch) | |
tree | ca33211e34c33828894a31535b9d445d800fd55d /gtk2_ardour/midi_region_view.h | |
parent | 80e9eb09dd278d2b224d5da4c3fc82cca7c52182 (diff) |
Prevent snap_frame_to_frame returning -ve offset from the region start (fixes #3925).
git-svn-id: svn://localhost/ardour2/branches/3.0@9396 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index ccd6a82dec..97cc07b7e2 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -250,11 +250,7 @@ class MidiRegionView : public RegionView */ framepos_t snap_pixel_to_frame(double x); - /** Snap a region relative frame coordinate to frame units. - * @param x a pixel coordinate relative to region start - * @return the snapped framepos_t coordinate relative to region start - */ - framepos_t snap_frame_to_frame(framepos_t x); + ARDOUR::frameoffset_t snap_frame_to_frame (ARDOUR::frameoffset_t); /** Convert a timestamp in beats to frames (both relative to region start) */ framepos_t beats_to_frames(double beats) const; |