[QGIS Commit] r8345 - trunk/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Apr 13 07:17:18 EDT 2008
Author: mhugent
Date: 2008-04-13 07:17:17 -0400 (Sun, 13 Apr 2008)
New Revision: 8345
Modified:
trunk/qgis/src/core/qgsspatialrefsys.cpp
Log:
Workaround for reprojection on the fly bug
Modified: trunk/qgis/src/core/qgsspatialrefsys.cpp
===================================================================
--- trunk/qgis/src/core/qgsspatialrefsys.cpp 2008-04-13 08:00:56 UTC (rev 8344)
+++ trunk/qgis/src/core/qgsspatialrefsys.cpp 2008-04-13 11:17:17 UTC (rev 8345)
@@ -125,6 +125,9 @@
// Assignment operator
QgsSpatialRefSys& QgsSpatialRefSys::operator=(const QgsSpatialRefSys& srs)
{
+ OSRDestroySpatialReference( mSRS );
+ mSRS = OSRNewSpatialReference(NULL);
+
if (&srs != this)
{
mSrsId = srs.mSrsId;
More information about the QGIS-commit
mailing list