Fix fit to zoom: fit image even when normalsize is smaller than window size.

This commit is contained in:
Luis Lucas committed 2014-04-03 17:13:11 +01:00
1 parent d3534b9c7d
commit 99ec39e9ff
1 file changed
-5
-5
View File
@@ -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 );
}