From: Joel Holdsworth Date: Sat, 7 Dec 2013 23:09:42 +0000 (+0000) Subject: Removed use of LabelMarginWidth X-Git-Tag: pulseview-0.2.0~191 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f3f98f8fade1cffb28161da2710dfc9def5e6d74;p=pulseview.git Removed use of LabelMarginWidth --- 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)