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
This commit is contained in:
Carl Hetherington 2010-10-02 00:28:13 +00:00
parent bf83719ca0
commit ef62a039b9

View file

@ -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());
}
}