Further fix to #3437 from Lincoln.
authorCarl Hetherington <carl@carlh.net>
Tue, 7 Sep 2010 23:27:10 +0000 (23:27 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 7 Sep 2010 23:27:10 +0000 (23:27 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7755 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/audio_region_view.cc

index eea828937943e44a1601c8faf557cf14560a5120..86e34b94883d2581fc79c2dfe0583f5970577303 100644 (file)
@@ -535,6 +535,15 @@ AudioRegionView::set_height (gdouble height)
                (*l).second->property_y2() = _height - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 1;
        }       
 
+       if (fade_position_line) {
+               if (height < NAME_HIGHLIGHT_THRESH) {
+                       fade_position_line->property_y2() = _height - 1;
+               }
+               else {
+                       fade_position_line->property_y2() = _height - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 1;
+               }
+       }
+
        if (name_pixbuf) {
                name_pixbuf->raise_to_top();
        }