[QGIS Commit] r15329 - trunk/qgis/src/providers/ogr

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Mar 4 02:14:17 EST 2011


Author: jef
Date: 2011-03-03 23:14:17 -0800 (Thu, 03 Mar 2011)
New Revision: 15329

Modified:
   trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
Log:
fix #3542

Modified: trunk/qgis/src/providers/ogr/qgsogrprovider.cpp
===================================================================
--- trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2011-03-04 05:26:19 UTC (rev 15328)
+++ trunk/qgis/src/providers/ogr/qgsogrprovider.cpp	2011-03-04 07:14:17 UTC (rev 15329)
@@ -943,6 +943,8 @@
 
   clearMinMaxCache();
 
+  setIgnoredFields( true, QgsAttributeList() );
+
   for ( QgsChangedAttributesMap::const_iterator it = attr_map.begin(); it != attr_map.end(); ++it )
   {
     long fid = ( long ) it.key();
@@ -1012,6 +1014,8 @@
   OGRFeatureH theOGRFeature = 0;
   OGRGeometryH theNewGeometry = 0;
 
+  setIgnoredFields( true, QgsAttributeList() );
+
   for ( QgsGeometryMap::iterator it = geometry_map.begin(); it != geometry_map.end(); ++it )
   {
     theOGRFeature = OGR_L_GetFeature( ogrLayer, it.key() );



More information about the QGIS-commit mailing list