X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Fviewport.cpp;h=7108638588b054a42562b556984236302704c6a9;hb=18f7104f875a71bceeb152398b682737528a4ad7;hp=f0c78e67fcd727bdea0249120259b80331f8f1b1;hpb=300fc11ea8ec416b31c7dbc3d3d52277af24d1b7;p=pulseview.git diff --git a/pv/view/viewport.cpp b/pv/view/viewport.cpp index f0c78e67..71086385 100644 --- a/pv/view/viewport.cpp +++ b/pv/view/viewport.cpp @@ -19,6 +19,7 @@ */ #include +#include #include "view.h" #include "viewport.h" @@ -28,6 +29,7 @@ #include +using std::abs; using std::max; using std::min; using std::shared_ptr; @@ -65,7 +67,7 @@ int Viewport::get_total_height() const const vector< shared_ptr > traces(_view.get_traces()); for (const shared_ptr t : traces) { assert(t); - h = max(t->get_v_offset() + View::SignalHeight, h); + h = max(t->v_offset() + View::SignalHeight, h); } return h;