diff options
author | Carl Hetherington <carl@carlh.net> | 2010-10-02 00:28:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-10-02 00:28:13 +0000 |
commit | ef62a039b9daa6f932a28a0c3d0b5918015e90d8 (patch) | |
tree | 53dcc69ba3431b53fdc7eca7e8f65d562fc6aff5 /gtk2_ardour/automation_line.cc | |
parent | bf83719ca0c04a6cef79cf73a8bff985c71dd77e (diff) |
Fix rounding of automation view point positions. Fixes remainder of #3329.
git-svn-id: svn://localhost/ardour2/branches/3.0@7869 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index d51a4fe1eb..fad69fd62d 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -1212,7 +1212,7 @@ AutomationLine::view_to_model_coord_y (double& y) const } else if (alist->parameter().type() == PluginAutomation) { y = y * (double)(alist->get_max_y()- alist->get_min_y()) + alist->get_min_y(); } else { - y = (int)(y * alist->parameter().max()); + y = rint (y * alist->parameter().max()); } } |