From: Soeren Apel Date: Sat, 18 Feb 2017 23:37:08 +0000 (+0100) Subject: View: Fix view item positioning X-Git-Tag: pulseview-0.4.0~184 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=6644424f1ea61ee7e1f048bfac09acd4a094feab View: Fix view item positioning --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 546176b4..5959ff7b 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -1192,11 +1192,11 @@ void View::signals_changed() } // Add and position the pending top levels items + int offset = v_extents().second; for (auto item : new_top_level_items) { add_child_item(item); // Position the item after the last item or at the top if there is none - int offset = v_extents().second; const pair extents = item->v_extents(); if (item->enabled())