X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fview.cpp;h=2cb3f3ed9b6f3dd1f2591b94911b150004f4ba94;hb=18f7104f875a71bceeb152398b682737528a4ad7;hp=82be599b2ff951c61da3ef4e6dbbc7aa523c855e;hpb=23935421086ebf58cfe68228971ded327a6155a1;p=pulseview.git diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 82be599b..2cb3f3ed 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -257,7 +257,7 @@ vector< shared_ptr > View::get_traces() const stable_sort(traces.begin(), traces.end(), [](const shared_ptr &a, const shared_ptr &b) { - return a->get_v_offset() < b->get_v_offset(); }); + return a->v_offset() < b->v_offset(); }); return traces; } @@ -361,11 +361,11 @@ void View::normalize_layout() int v_min = INT_MAX; for (const shared_ptr t : traces) - v_min = min(t->get_v_offset(), v_min); + v_min = min(t->v_offset(), v_min); const int delta = -min(v_min, 0); for (shared_ptr t : traces) - t->set_v_offset(t->get_v_offset() + delta); + t->set_v_offset(t->v_offset() + delta); verticalScrollBar()->setSliderPosition(_v_offset + delta); v_scroll_value_changed(verticalScrollBar()->sliderPosition());