# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-07-25 15:47:52 # Node ID c636e8d93e115c23b0d79195b6552fb22f3b28dc # Parent e1ce86573eef9b254dbabd14515434fb4e782a48 fix autoscale when unzoomed with a key diff --git a/zoomer.cpp b/zoomer.cpp --- a/zoomer.cpp +++ b/zoomer.cpp @@ -36,7 +36,7 @@ void Zoomer::zoom(int up) QwtPlotZoomer::zoom(up); - if (up == 0) + if(zoomRectIndex() == 0) { emit unzoomed(); }