X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fview%2Fview.cpp;h=b877da1e202aaaeae210e7492ea151fdc0858155;hb=752281db3591fe0eeb2590379b2055b8e05cd14f;hp=5649bdc849e5609dea698a21bce41b8d60102e2e;hpb=8c09273b13a10399e7f7d18dd446c2d13813e239;p=pulseview.git diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 5649bdc..b877da1 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -1038,13 +1038,15 @@ void View::signals_changed() offset += extents.second; } - // Assign proper vertical offsets to each channel in the group - new_trace_group->restack_items(); - - // If this is a new group, enqueue it in the new top level - // items list - if (!new_traces_in_group.empty() && new_trace_group) - new_top_level_items.push_back(new_trace_group); + if (new_trace_group) { + // Assign proper vertical offsets to each channel in the group + new_trace_group->restack_items(); + + // If this is a new group, enqueue it in the new top level + // items list + if (!new_traces_in_group.empty()) + new_top_level_items.push_back(new_trace_group); + } } // Enqueue the remaining logic channels in a group