Skip to content

Commit

Permalink
feature: fix crash when feature 'owns' no geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 20, 2015
1 parent c382655 commit c6f9b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeature_p.h
Expand Up @@ -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 )
Expand Down

0 comments on commit c6f9b07

Please sign in to comment.