Skip to content
Permalink
Browse files

fix invalid use of rendering cache when map rotation is changed

  • Loading branch information
PeterPetrik authored and nyalldawson committed Feb 9, 2021
1 parent 645397e commit c6dcea7bde5c105c988fbc18d4f5539eacca797c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/core/qgsmaprenderercache.cpp
@@ -235,6 +235,11 @@ QImage QgsMapRendererCache::transformedCacheImage( const QString &cacheKey, cons
}
else
{
// no not use cache when the canvas rotation just changed
// https://github.com/qgis/QGIS/issues/41360
if ( !qgsDoubleNear( mtp.mapRotation(), params.cachedMtp.mapRotation() ) )
return QImage();

QgsRectangle intersection = mExtent.intersect( params.cachedExtent );
if ( intersection.isNull() )
return QImage();

0 comments on commit c6dcea7

Please sign in to comment.