We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c382655 commit c6f9b07Copy full SHA for c6f9b07
src/core/qgsfeature_p.h
@@ -47,7 +47,7 @@ class CORE_EXPORT QgsFeaturePrivate : public QSharedData
47
: QSharedData( other )
48
, fid( other.fid )
49
, attributes( other.attributes )
50
- , geometry( other.ownsGeometry ? new QgsGeometry( *other.geometry ) : other.geometry )
+ , geometry( other.ownsGeometry && other.geometry ? new QgsGeometry( *other.geometry ) : other.geometry )
51
, ownsGeometry( other.ownsGeometry )
52
, valid( other.valid )
53
, fields( other.fields )
0 commit comments