X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=c9b08bf8c0445de0783d5bbb16d4d4275f5066f1;hp=eeb8afd236529e442bac91d6f4eeae6b5a065f05;hb=9d4010c7f02b1c7575db2fb163b0d6daf323c1a9;hpb=574c568d184240cd87be1b57fc00d60a4eac7566 diff --git a/pv/view/view.cpp b/pv/view/view.cpp index eeb8afd2..c9b08bf8 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -546,6 +546,12 @@ void View::restack_all_trace_tree_items() for (auto &o : sorted_owners) o->restack_items(); + // Re-assign background colors + bool next_bgcolour_state = 0; + + for (auto &o : sorted_owners) + next_bgcolour_state = o->reassign_bgcolour_states(next_bgcolour_state); + // Animate the items to their destination for (const auto &i : items) i->animate_to_layout_v_offset();