We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2555d28 commit aad7c5eCopy full SHA for aad7c5e
src/core/qgscoordinatereferencesystem_p.h
@@ -65,7 +65,7 @@ class QgsCoordinateReferenceSystemPrivate : public QSharedData
65
, mSRID( other.mSRID )
66
, mAuthId( other.mAuthId )
67
, mIsValid( other.mIsValid )
68
- , mCRS( OSRNewSpatialReference( nullptr ) )
+ , mCRS( nullptr )
69
, mValidationHint( other.mValidationHint )
70
, mWkt( other.mWkt )
71
, mProj4( other.mProj4 )
@@ -76,6 +76,10 @@ class QgsCoordinateReferenceSystemPrivate : public QSharedData
76
{
77
mCRS = OSRClone( other.mCRS );
78
}
79
+ else
80
+ {
81
+ mCRS = OSRNewSpatialReference( nullptr );
82
+ }
83
84
85
~QgsCoordinateReferenceSystemPrivate()
0 commit comments