diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-08 14:41:29 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-08 14:41:29 -0400 |
commit | 92bb0e0d7f79bb7745d7c02b1dcfa5ea206edf31 (patch) | |
tree | 60f932e97986739c26493f0356957fd997a5153e /gtk2_ardour/editor.h | |
parent | b86e1204ec9c4b85561520dfe46e5b3bee5d85ea (diff) |
fix problem with calls to Editor::trackview_by_y_position() when using motion events. The coordinate passed in was in canvas space and the method expected trackview space
To handle any further issues like this, I generalized and added an optional argument specifying that the canvas=>trackview transform is required, thus
centralizing where this done.
Diffstat (limited to 'gtk2_ardour/editor.h')
-rw-r--r-- | gtk2_ardour/editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index 0d640c1f9d..eb79b35d23 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -1054,7 +1054,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD /* track views */ TrackViewList track_views; - std::pair<TimeAxisView*, double> trackview_by_y_position (double); + std::pair<TimeAxisView*, double> trackview_by_y_position (double, bool trackview_relative_offset = true); RouteTimeAxisView* axis_view_from_route (boost::shared_ptr<ARDOUR::Route>) const; TrackViewList get_tracks_for_range_action () const; |