Skip to content
Permalink
Browse files
Add explanatory comment
  • Loading branch information
nyalldawson committed Sep 10, 2021
1 parent 5262bcb commit 87d42afb317bee6374ebb711211024342286287c
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.buffered( std::max( extent.width(), extent.height() ) * 1000 ) )
: mExtent( extent.buffered( std::max( extent.width(), extent.height() ) * 1000 ) ) // RTree goes crazy if we insert geometries outside the bounds, so buffer them right out to be safe
, mAnnotationItemsIndex( std::make_unique< QgsRenderedItemResultsSpatialIndex >( mExtent ) )
{

0 comments on commit 87d42af

Please sign in to comment.