From 3bcba6faaf322dfcbfd3d1817f8c66b297273f0c Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sat, 31 Oct 2020 10:03:56 +0100 Subject: [PATCH] wrong empty check fixed --- playground/images/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playground/images/Image.cpp b/playground/images/Image.cpp index a72b1420..39834688 100644 --- a/playground/images/Image.cpp +++ b/playground/images/Image.cpp @@ -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 ); }