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:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user