Skip to content
Permalink
Browse files

QgsGeometryCollection: copy mBoundingBox in copy constructor

  • Loading branch information
rouault committed Jun 1, 2020
1 parent db04b37 commit baca6c062c7870ca4941018874660d5fe2208722
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/geometry/qgsgeometrycollection.cpp
@@ -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 );

0 comments on commit baca6c0

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