Skip to content

Commit 0579f3e

Browse files
committed
Try to fix test on Travis
1 parent 6a7cd36 commit 0579f3e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎src/providers/memory/qgsmemoryprovider.cpp‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,12 @@ bool QgsMemoryProvider::addFeatures( QgsFeatureList & flist )
352352
if ( it->constGeometry() )
353353
{
354354
if ( updateExtent )
355-
mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
355+
{
356+
if ( mExtent.isNull() )
357+
mExtent = it->constGeometry()->boundingBox();
358+
else
359+
mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
360+
}
356361

357362
// update spatial index
358363
if ( mSpatialIndex )

0 commit comments

Comments
 (0)