Skip to content

Commit 34d008a

Browse files
author
mhugent
committed
Workaround for reprojection on the fly bug
git-svn-id: http://svn.osgeo.org/qgis/trunk@8345 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 778b1aa commit 34d008a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgsspatialrefsys.cpp

+3
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)