diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-19 23:26:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-19 23:26:10 +0000 |
commit | 064c6287cd22e9874fe897604201a4e08769471e (patch) | |
tree | 9e4c2305512df3c0d097d70aa130b2b3988b5e4d /gtk2_ardour/time_axis_view_item.cc | |
parent | 61dd34e4356ac9c0b6bbac4165d768117702febd (diff) |
Remove fade handles from recording regions. Fixes #3322.
git-svn-id: svn://localhost/ardour2/branches/3.0@7444 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.cc | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index 6fd4be08a5..164e4d2420 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -204,11 +204,14 @@ TimeAxisViewItem::init ( } /* create our grab handles used for trimming/duration etc */ - frame_handle_start = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height()); - frame_handle_start->property_outline_what() = 0x0; - - frame_handle_end = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height()); - frame_handle_end->property_outline_what() = 0x0; + if (!_recregion) { + frame_handle_start = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height()); + frame_handle_start->property_outline_what() = 0x0; + frame_handle_end = new ArdourCanvas::SimpleRect (*group, 0.0, TimeAxisViewItem::GRAB_HANDLE_LENGTH, 5.0, trackview.current_height()); + frame_handle_end->property_outline_what() = 0x0; + } else { + frame_handle_start = frame_handle_end = 0; + } set_color (base_color); @@ -527,8 +530,10 @@ TimeAxisViewItem::set_height (double height) if (frame) { frame->property_y2() = height - 1; - frame_handle_start->property_y2() = height - 1; - frame_handle_end->property_y2() = height - 1; + if (frame_handle_start) { + frame_handle_start->property_y2() = height - 1; + frame_handle_end->property_y2() = height - 1; + } } vestigial_frame->property_y2() = height - 1; |