summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-01-05 02:30:28 +0000
committerCarl Hetherington <carl@carlh.net>2010-01-05 02:30:28 +0000
commit0d5ce8d939b1772626f3b223042b2bce0c72154a (patch)
tree41abbbf0e5782628c7640417c9f91ece36292724 /gtk2_ardour
parent5f8f48117298231b053e62b9940ce753e0235906 (diff)
Make a note of some confusion in the previous commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@6451 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_selection.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc
index ab9cce74e1..dac890fee4 100644
--- a/gtk2_ardour/editor_selection.cc
+++ b/gtk2_ardour/editor_selection.cc
@@ -243,6 +243,9 @@ Editor::set_selected_control_point_from_click (Selection::Operation op, bool /*n
}
/* rectangle 10 pixels surrounding the clicked control point */
+ /* XXX: not really sure why we look for more control points close to the clicked one,
+ and don't just use the clicked one
+ */
nframes64_t const x1 = pixel_to_frame (clicked_control_point->get_x() - 10);
nframes64_t const x2 = pixel_to_frame (clicked_control_point->get_x() + 10);
double y1 = clicked_control_point->get_y() - 10;