diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-01-21 00:11:03 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-01-21 00:11:03 +0000 |
commit | 897d071e97bf87ef7f759b985b67331623314bf4 (patch) | |
tree | c392e777bd96cfd2d4465137e78ea471a0c8835e /gtk2_ardour/regionview.cc | |
parent | a54169c198f9c81113239f6d346074af48220a3a (diff) |
fix setting sync point crash, reinstate keymouse zoom tentatively
git-svn-id: svn://localhost/trunk/ardour2@284 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/regionview.cc')
-rw-r--r-- | gtk2_ardour/regionview.cc | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/gtk2_ardour/regionview.cc b/gtk2_ardour/regionview.cc index 672f0a5291..5da65dead7 100644 --- a/gtk2_ardour/regionview.cc +++ b/gtk2_ardour/regionview.cc @@ -875,24 +875,15 @@ AudioRegionView::region_sync_changed () Points points; - points = sync_mark->property_points().get_value(); + //points = sync_mark->property_points().get_value(); double offset = sync_offset / samples_per_unit; - - points[0].set_x(offset - ((sync_mark_width-1)/2)); - points[0].set_y(1); - - points[1].set_x(offset + (sync_mark_width-1)/2); - points[1].set_y(1); - - points[2].set_x(offset); - points[2].set_y(sync_mark_width - 1); - - points[3].set_x(offset - ((sync_mark_width-1)/2)); - points[3].set_y(1); - + points.push_back (Gnome::Art::Point (offset - ((sync_mark_width-1)/2), 1)); + points.push_back (Gnome::Art::Point (offset + ((sync_mark_width-1)/2), 1)); + points.push_back (Gnome::Art::Point (offset, sync_mark_width - 1)); + points.push_back (Gnome::Art::Point (offset - ((sync_mark_width-1)/2), 1)); + sync_mark->property_points().set_value (points); sync_mark->show(); - sync_mark->property_points() = points; } } |