From: Joel Holdsworth Date: Fri, 17 Jan 2014 18:47:17 +0000 (+0000) Subject: pv::view::View::zoom: Removed duplicated scale clamping X-Git-Tag: pulseview-0.2.0~143 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8b2e2a9acef9501910047881edd54dd092b9732f;p=pulseview.git pv::view::View::zoom: Removed duplicated scale clamping --- diff --git a/pv/view/view.cpp b/pv/view/view.cpp index 35195b58..cf990bcd 100644 --- a/pv/view/view.cpp +++ b/pv/view/view.cpp @@ -154,9 +154,7 @@ void View::zoom(double steps) void View::zoom(double steps, int offset) { - const double new_scale = max(min(_scale * pow(3.0/2.0, -steps), - MaxScale), MinScale); - set_zoom(new_scale, offset); + set_zoom(_scale * pow(3.0/2.0, -steps), offset); } void View::zoom_fit()