Skip to content

Commit

Permalink
QgsGeometryCollection: copy mBoundingBox in copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 1, 2020
1 parent db04b37 commit baca6c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/geometry/qgsgeometrycollection.cpp
Expand Up @@ -37,7 +37,10 @@ QgsGeometryCollection::QgsGeometryCollection()
}

QgsGeometryCollection::QgsGeometryCollection( const QgsGeometryCollection &c ):
QgsAbstractGeometry( c ), mHasCachedValidity( c.mHasCachedValidity ), mValidityFailureReason( c.mValidityFailureReason )
QgsAbstractGeometry( c ),
mBoundingBox( c.mBoundingBox ),
mHasCachedValidity( c.mHasCachedValidity ),
mValidityFailureReason( c.mValidityFailureReason )
{
int nGeoms = c.mGeometries.size();
mGeometries.resize( nGeoms );
Expand Down

0 comments on commit baca6c0

Please sign in to comment.