Skip to content

Commit c6f9b07

Browse files
committed
feature: fix crash when feature 'owns' no geometry
1 parent c382655 commit c6f9b07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsfeature_p.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class CORE_EXPORT QgsFeaturePrivate : public QSharedData
4747
: QSharedData( other )
4848
, fid( other.fid )
4949
, attributes( other.attributes )
50-
, geometry( other.ownsGeometry ? new QgsGeometry( *other.geometry ) : other.geometry )
50+
, geometry( other.ownsGeometry && other.geometry ? new QgsGeometry( *other.geometry ) : other.geometry )
5151
, ownsGeometry( other.ownsGeometry )
5252
, valid( other.valid )
5353
, fields( other.fields )

0 commit comments

Comments
 (0)