Skip to content
Permalink
Browse files

Try to fix test on Travis

  • Loading branch information
nyalldawson committed Jun 12, 2017
1 parent 6a7cd36 commit 0579f3e8d0aa26f2100b9d1093391924619c802f
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/providers/memory/qgsmemoryprovider.cpp
@@ -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 )

0 comments on commit 0579f3e

Please sign in to comment.
You can’t perform that action at this time.