diff options
author | Carl Hetherington <carl@carlh.net> | 2009-10-21 12:32:46 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-10-21 12:32:46 +0000 |
commit | 516048882c17b97d9b10985f56a0990f56ae5404 (patch) | |
tree | 76c48ddb477e08db8e183474d42e84f51ea14e94 /gtk2_ardour | |
parent | 20f7592fab3a24979ab4077405b5e73a34bfeae8 (diff) |
Tidy up region gain line drawing slightly so that it doesn't overhang its region.
git-svn-id: svn://localhost/ardour2/branches/3.0@5839 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/audio_region_view.cc | 2 | ||||
-rw-r--r-- | gtk2_ardour/region_gain_line.cc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/audio_region_view.cc b/gtk2_ardour/audio_region_view.cc index c8d33ec2e2..2a97225434 100644 --- a/gtk2_ardour/audio_region_view.cc +++ b/gtk2_ardour/audio_region_view.cc @@ -494,7 +494,7 @@ AudioRegionView::set_height (gdouble height) gain_line->show (); } } - gain_line->set_height ((uint32_t) rint (height - NAME_HIGHLIGHT_SIZE)); + gain_line->set_height ((uint32_t) rint (height - NAME_HIGHLIGHT_SIZE - 2)); } manage_zero_line (); diff --git a/gtk2_ardour/region_gain_line.cc b/gtk2_ardour/region_gain_line.cc index b08be91590..b3dea4f42a 100644 --- a/gtk2_ardour/region_gain_line.cc +++ b/gtk2_ardour/region_gain_line.cc @@ -45,6 +45,7 @@ AudioRegionGainLine::AudioRegionGainLine (const string & name, Session& s, Audio assert(l->parameter().type() == EnvelopeAutomation); group->raise_to_top (); + group->property_y() = 2; set_uses_gain_mapping (true); terminal_points_can_slide = false; } |