Fix canvas region layering in non-Stacked modes. Remove unused and confusing TimeAxisViewItem::selected .
git-svn-id: svn://localhost/ardour2/branches/3.0@6356 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
401c7091c8
commit
0c80b01f47
|
@ -290,9 +290,9 @@ StreamView::layer_regions()
|
||||||
i = tmp;
|
i = tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fix canvas layering by raising each in the sorted list order
|
// Fix canvas layering by raising each to the top in the sorted order.
|
||||||
for (RegionViewList::iterator i = copy.begin(); i != copy.end(); ++i) {
|
for (RegionViewList::iterator i = copy.begin(); i != copy.end(); ++i) {
|
||||||
region_layered (*i);
|
(*i)->get_canvas_group()->raise_to_top ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,6 +320,9 @@ StreamView::playlist_modified (boost::shared_ptr<Diskstream> ds)
|
||||||
if (_layer_display == Stacked) {
|
if (_layer_display == Stacked) {
|
||||||
update_contents_height ();
|
update_contents_height ();
|
||||||
update_coverage_frames ();
|
update_coverage_frames ();
|
||||||
|
} else {
|
||||||
|
/* layering has probably been modified. reflect this in the canvas. */
|
||||||
|
layer_regions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -413,9 +413,6 @@ class TimeAxisViewItem : public Selectable
|
||||||
/** the curretn samples per canvas unit */
|
/** the curretn samples per canvas unit */
|
||||||
double samples_per_unit ;
|
double samples_per_unit ;
|
||||||
|
|
||||||
/** indicates if this item is currently selected */
|
|
||||||
bool selected ;
|
|
||||||
|
|
||||||
/** should the item show its selected status */
|
/** should the item show its selected status */
|
||||||
bool should_show_selection;
|
bool should_show_selection;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user