Skip to content
Permalink
Browse files
Fix spatial index resolution in rendered item results
  • Loading branch information
nyalldawson committed Sep 10, 2021
1 parent 1537d39 commit 5ea9c633cd3f06f6680bc597ca58959b0cfb3d3c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/maprenderer/qgsrendereditemresults.cpp
@@ -98,7 +98,7 @@ class QgsRenderedItemResultsSpatialIndex : public RTree<const QgsRenderedItemDet
///@endcond

QgsRenderedItemResults::QgsRenderedItemResults( const QgsRectangle &extent )
: mExtent( extent )
: mExtent( extent.buffered( std::max( extent.width(), extent.height() ) * 1000 ) )
, mAnnotationItemsIndex( std::make_unique< QgsRenderedItemResultsSpatialIndex >( mExtent ) )
{

0 comments on commit 5ea9c63

Please sign in to comment.