Tidy up region gain line drawing slightly so that it doesn't overhang its region...
authorBen Loftis <ben@glw.com>
Wed, 21 Oct 2009 19:20:27 +0000 (19:20 +0000)
committerBen Loftis <ben@glw.com>
Wed, 21 Oct 2009 19:20:27 +0000 (19:20 +0000)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5848 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/audio_region_view.cc
gtk2_ardour/region_gain_line.cc

index f231bfb91f500f33521fe15caf699857e58832c5..20310c4f4f21a45185641e38aea6454e313fe8ac 100644 (file)
@@ -455,7 +455,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 ();
index 087ad59d4f2daf8bc1643b03edcc03b66aa8f6a7..1e23c2c55df8210f3ea4dd1e4ccd246199091f53 100644 (file)
@@ -44,6 +44,7 @@ AudioRegionGainLine::AudioRegionGainLine (const string & name, Session& s, Audio
          rv (r)
 {
        group->raise_to_top ();
+       group->property_y() = 2;
        set_verbose_cursor_uses_gain_mapping (true);
        terminal_points_can_slide = false;
 }