feature: fix crash when feature 'owns' no geometry

This commit is contained in:
Juergen E. Fischer 2015-05-21 00:00:40 +02:00
parent c382655c97
commit c6f9b07a27

View File

@ -47,7 +47,7 @@ class CORE_EXPORT QgsFeaturePrivate : public QSharedData
: QSharedData( other )
, fid( other.fid )
, attributes( other.attributes )
, geometry( other.ownsGeometry ? new QgsGeometry( *other.geometry ) : other.geometry )
, geometry( other.ownsGeometry && other.geometry ? new QgsGeometry( *other.geometry ) : other.geometry )
, ownsGeometry( other.ownsGeometry )
, valid( other.valid )
, fields( other.fields )