]> sigrok.org Git - pulseview.git/commitdiff
pv::view::View::zoom: Removed duplicated scale clamping
authorJoel Holdsworth <redacted>
Fri, 17 Jan 2014 18:47:17 +0000 (18:47 +0000)
committerJoel Holdsworth <redacted>
Fri, 17 Jan 2014 18:51:15 +0000 (18:51 +0000)
pv/view/view.cpp

index 35195b58dc150c8743f5d623e7495ccb1ecd5412..cf990bcdced9f7cf44eeac9b149f2942cb8c2cc9 100644 (file)
@@ -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()