Skip to content

Commit 0343c97

Browse files
author
mhugent
committedApr 13, 2008

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/qgsspatialrefsys.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ QgsSpatialRefSys::QgsSpatialRefSys(const QgsSpatialRefSys &srs)
125125
// Assignment operator
126126
QgsSpatialRefSys& QgsSpatialRefSys::operator=(const QgsSpatialRefSys& srs)
127127
{
128+
OSRDestroySpatialReference( mSRS );
129+
mSRS = OSRNewSpatialReference(NULL);
130+
128131
if (&srs != this)
129132
{
130133
mSrsId = srs.mSrsId;

0 commit comments

Comments
 (0)
Please sign in to comment.