Fix problems with selecting control points in AutomationRegionViews with non-zero...
authorCarl Hetherington <carl@carlh.net>
Wed, 28 Sep 2011 00:36:30 +0000 (00:36 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 28 Sep 2011 00:36:30 +0000 (00:36 +0000)
commitde53e1154b2ebdc050b390b2df760177b8f57c90
tree8a4641b8ea98948ac8e2be3957db656b7f125106
parent3f8f1b3478dd00dc92776c36034b534bcc3b0684
Fix problems with selecting control points in AutomationRegionViews with non-zero region start.  Firstly, determine_visible_control_points considers a subset of the AutomationLine's points if start is non-zero, and this must be taken into account when matching up AutomationLine points with AutomationList points.  Secondly, _offset should not part of the calculation when converting model position to session frames.  Fixes #4338.

git-svn-id: svn://localhost/ardour2/branches/3.0@10151 d708f5d6-7413-0410-9779-e7cbd77b26cf
gtk2_ardour/automation_line.cc
gtk2_ardour/automation_line.h