summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-04-20 23:48:39 +0000
committerCarl Hetherington <carl@carlh.net>2011-04-20 23:48:39 +0000
commite90e1cc771ac3c660e136db0cdc03e39524da895 (patch)
treeca33211e34c33828894a31535b9d445d800fd55d /gtk2_ardour/midi_region_view.h
parent80e9eb09dd278d2b224d5da4c3fc82cca7c52182 (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.h6
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;