prevent too small sizes on zooming out only after level 100% default tip
authorHans Meine <hans.meine@mevis.fraunhofer.de>
Thu Aug 04 17:11:38 2011 +0200 (9 months ago)
changeset 404babc43ef4c05
parent 403 c0951d1618ed
prevent too small sizes on zooming out only after level 100%
src/VigraQt/qimageviewer.cxx
     1.1 --- a/src/VigraQt/qimageviewer.cxx	Thu Aug 04 17:10:53 2011 +0200
     1.2 +++ b/src/VigraQt/qimageviewer.cxx	Thu Aug 04 17:11:38 2011 +0200
     1.3 @@ -321,8 +321,8 @@
     1.4      int newHeight = zoom(originalHeight(), level);
     1.5  
     1.6      // TODO: should this move to the client/keyboard handling code?
     1.7 -    if((newWidth < 16 && newHeight < 16) ||
     1.8 -       newWidth < 2 || newHeight < 2)
     1.9 +    if(level < 0 && ((newWidth < 16 && newHeight < 16) ||
    1.10 +		     newWidth < 2 || newHeight < 2))
    1.11          return;
    1.12  
    1.13      zoomLevel_ = level;