Skip to content

Commit

Permalink
Fix spatial index resolution in rendered item results
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 10, 2021
1 parent 1537d39 commit 5ea9c63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/maprenderer/qgsrendereditemresults.cpp
Expand Up @@ -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 ) )
{

Expand Down

0 comments on commit 5ea9c63

Please sign in to comment.