Fix fit to zoom: fit image even when normalsize is smaller than window size.
This commit is contained in:
1 parent
d3534b9c7d
commit
99ec39e9ff
1 file changed
-5
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user