[QGIS Commit] r8188 - branches/gdalogr-capi-branch/qgis/src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Feb 28 16:21:38 EST 2008
Author: warmerdam
Date: 2008-02-28 16:21:37 -0500 (Thu, 28 Feb 2008)
New Revision: 8188
Modified:
branches/gdalogr-capi-branch/qgis/src/core/qgsvectorfilewriter.cpp
Log:
retain ownership of geometry mGeom in the writer - fixes tims graticule crash
Modified: branches/gdalogr-capi-branch/qgis/src/core/qgsvectorfilewriter.cpp
===================================================================
--- branches/gdalogr-capi-branch/qgis/src/core/qgsvectorfilewriter.cpp 2008-02-28 20:19:50 UTC (rev 8187)
+++ branches/gdalogr-capi-branch/qgis/src/core/qgsvectorfilewriter.cpp 2008-02-28 21:21:37 UTC (rev 8188)
@@ -243,7 +243,7 @@
}
// set geometry (ownership is not passed to OGR)
- OGR_F_SetGeometryDirectly(poFeature,mGeom);
+ OGR_F_SetGeometry(poFeature,mGeom);
}
// put the created feature to layer
More information about the QGIS-commit
mailing list