Fix tape region view crash.

git-svn-id: svn://localhost/ardour2/branches/3.0@5110 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Nick Mainsbridge
2009-05-22 11:58:46 +00:00
parent 882e3a690a
commit 889951245d
2 changed files with 3 additions and 1 deletions

View File

@@ -44,6 +44,7 @@ using namespace ArdourCanvas;
const TimeAxisViewItem::Visibility TapeAudioRegionView::default_tape_visibility
= TimeAxisViewItem::Visibility (
TimeAxisViewItem::ShowNameHighlight |
TimeAxisViewItem::ShowNameText |
TimeAxisViewItem::ShowFrame |
TimeAxisViewItem::HideFrameRight |
TimeAxisViewItem::FullWidthNameHighlight);

View File

@@ -139,7 +139,6 @@ TimeAxisViewItem::init (const string& it_name, double spu, Gdk::Color& base_colo
show_vestigial = true;
visibility = vis;
_sensitive = true;
name_pixbuf = 0;
if (duration == 0) {
warning << "Time Axis Item Duration == 0" << endl ;
@@ -196,6 +195,8 @@ TimeAxisViewItem::init (const string& it_name, double spu, Gdk::Color& base_colo
name_pixbuf->property_x() = NAME_X_OFFSET;
name_pixbuf->property_y() = trackview.current_height() - 1.0 - NAME_Y_OFFSET;
} else {
name_pixbuf = 0;
}
/* create our grab handles used for trimming/duration etc */