Skip to content

Commit

Permalink
Try to fix test on Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent 6a7cd36 commit 0579f3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/providers/memory/qgsmemoryprovider.cpp
Expand Up @@ -352,7 +352,12 @@ bool QgsMemoryProvider::addFeatures( QgsFeatureList & flist )
if ( it->constGeometry() )
{
if ( updateExtent )
mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
{
if ( mExtent.isNull() )
mExtent = it->constGeometry()->boundingBox();
else
mExtent.combineExtentWith( it->constGeometry()->boundingBox() );
}

// update spatial index
if ( mSpatialIndex )
Expand Down

0 comments on commit 0579f3e

Please sign in to comment.