wrong empty check fixed

This commit is contained in:
Uwe Rathmann 2020-10-31 10:03:56 +01:00
parent 901de11d1b
commit 3bcba6faaf

View File

@ -92,7 +92,7 @@ bool Image::deferredUpdates() const
void Image::setSourceSize( const QSize& size )
{
if ( size.isEmpty() != sourceSize().isEmpty() )
if ( !( size.isEmpty() && sourceSize().isEmpty() ) )
QQuickImage::setSourceSize( size );
}