Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QgsGeometryCollection: copy mHasCachedValidity and mValidityFailureRe…
…ason in copy constructor
  • Loading branch information
rouault authored and nyalldawson committed May 29, 2020
1 parent c07b5cb commit 3c3d1ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/geometry/qgsgeometrycollection.cpp
Expand Up @@ -36,7 +36,8 @@ QgsGeometryCollection::QgsGeometryCollection()
mWkbType = QgsWkbTypes::GeometryCollection;
}

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

0 comments on commit 3c3d1ac

Please sign in to comment.