X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fview%2Fview.cpp;h=3137dd0c6686b4b9a947e7a708ba14868c16d631;hb=f3f98f8fade1cffb28161da2710dfc9def5e6d74;hp=f727cc33b540b4fddc18b77f154a08051d3a78d4;hpb=d1e7d82c6327c15f38d66602e65c4d3abe114df7;p=pulseview.git diff --git a/pv/view/view.cpp b/pv/view/view.cpp index f727cc33..3137dd0c 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -143,7 +143,7 @@ int View::v_offset() const void View::zoom(double steps) { - zoom(steps, (width() - LabelMarginWidth) / 2); + zoom(steps, _viewport->width() / 2); } void View::zoom(double steps, int offset)