From ef62a039b9daa6f932a28a0c3d0b5918015e90d8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 2 Oct 2010 00:28:13 +0000 Subject: [PATCH] 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 --- gtk2_ardour/automation_line.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); } }