Skip to content

Commit 5d0ce36

Browse files
committedMar 3, 2023
Fix qt warnings when trying to show raster marker with unknown size and missing images
1 parent 7c97fdb commit 5d0ce36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsimagecache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ QImage QgsImageCache::renderImage( const QString &path, QSize size, const bool k
400400
isBroken = true;
401401

402402
// if the size parameter is not valid, skip drawing of missing image symbol
403-
if ( !size.isValid() )
403+
if ( !size.isValid() || size.isNull() )
404404
return im;
405405

406406
// if image size is set to respect aspect ratio, correct for broken image aspect ratio

0 commit comments

Comments
 (0)
Please sign in to comment.