We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6a7cd36 commit 0579f3eCopy full SHA for 0579f3e
src/providers/memory/qgsmemoryprovider.cpp
@@ -352,7 +352,12 @@ bool QgsMemoryProvider::addFeatures( QgsFeatureList & flist )
352
if ( it->constGeometry() )
353
{
354
if ( updateExtent )
355
- mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
+ {
356
+ if ( mExtent.isNull() )
357
+ mExtent = it->constGeometry()->boundingBox();
358
+ else
359
+ mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
360
+ }
361
362
// update spatial index
363
if ( mSpatialIndex )
0 commit comments