From 99ec39e9ff7c1fe7c5c39591c736d8f4c1df483c Mon Sep 17 00:00:00 2001 From: Luis Lucas Date: Thu, 3 Apr 2014 17:13:11 +0100 Subject: [PATCH] Fix fit to zoom: fit image even when normalsize is smaller than window size. --- source/app/SubWindowHandle.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/app/SubWindowHandle.cpp b/source/app/SubWindowHandle.cpp index 4617c63..712bab5 100644 --- a/source/app/SubWindowHandle.cpp +++ b/source/app/SubWindowHandle.cpp @@ -225,11 +225,6 @@ Void SubWindowHandle::zoomToFit() { // Scale to a smaller size that the real to a nicer look QSize niceFit( m_cScrollArea->viewport()->size().width() - 5, m_cScrollArea->viewport()->size().height() - 5 ); - if( ( Int )m_pCurrStream->getWidth() <= niceFit.width() && ( Int )m_pCurrStream->getHeight() <= niceFit.height() ) - { - normalSize(); - return; - } scaleView( niceFit ); }