From: Joel Holdsworth Date: Sun, 16 Aug 2015 16:09:47 +0000 (-0600) Subject: View: Use list_by_type to get TraceTreeItems X-Git-Tag: pulseview-0.3.0~92 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cef5997ee1e08d713663d2ae02c839a315f41409;p=pulseview.git View: Use list_by_type to get TraceTreeItems --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index c0b3e251..3f0fe9d1 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -518,8 +518,10 @@ void View::restack_all_trace_tree_items() o->restack_items(); // Animate the items to their destination - for (const auto &r : *this) - r->animate_to_layout_v_offset(); + const vector< shared_ptr > items( + list_by_type()); + for (const auto &i : items) + i->animate_to_layout_v_offset(); } void View::get_scroll_layout(double &length, Timestamp &offset) const