diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-05 13:37:04 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-05 13:37:04 +0000 |
commit | b99721ec3b59cf22a0bd1f6583401c6da7bb5d95 (patch) | |
tree | 2b0a1a35b87e817e892b09b8c1213d36348848a1 /gtk2_ardour/automation_line.cc | |
parent | 5e3ca4db5cc356385e520643cfd279f393db4b51 (diff) |
Remove somewhat confusing view_to_model_coord_x method.
git-svn-id: svn://localhost/ardour2/branches/3.0@7546 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 9ca1c59bb0..ead6a2b56d 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -280,7 +280,7 @@ AutomationLine::model_representation (ControlPoint& cp, ModelRepresentation& mr) mr.xval = (*cp.model())->when; } else { mr.xval = trackview.editor().unit_to_frame (mr.xval); - view_to_model_coord_x (mr.xval); + mr.xval = _time_converter.from (mr.xval); } /* convert y to model units; the x was already done above @@ -1216,17 +1216,11 @@ AutomationLine::set_state (const XMLNode &node, int version) void AutomationLine::view_to_model_coord (double& x, double& y) const { - view_to_model_coord_x (x); + x = _time_converter.from (x); view_to_model_coord_y (y); } void -AutomationLine::view_to_model_coord_x (double& x) const -{ - x = _time_converter.from(x); -} - -void AutomationLine::view_to_model_coord_y (double& y) const { /* TODO: This should be more generic ... */ |