13
0

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:
Nick Mainsbridge 2009-12-12 12:33:36 +00:00
parent 401c7091c8
commit 0c80b01f47
2 changed files with 6 additions and 6 deletions

View File

@ -290,9 +290,9 @@ StreamView::layer_regions()
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) {
region_layered (*i);
(*i)->get_canvas_group()->raise_to_top ();
}
}
@ -320,7 +320,10 @@ StreamView::playlist_modified (boost::shared_ptr<Diskstream> ds)
if (_layer_display == Stacked) {
update_contents_height ();
update_coverage_frames ();
}
} else {
/* layering has probably been modified. reflect this in the canvas. */
layer_regions();
}
}
void

View File

@ -413,9 +413,6 @@ class TimeAxisViewItem : public Selectable
/** the curretn samples per canvas unit */
double samples_per_unit ;
/** indicates if this item is currently selected */
bool selected ;
/** should the item show its selected status */
bool should_show_selection;