[QGIS Commit] r9742 - trunk/qgis/src/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Dec 5 02:34:36 EST 2008


Author: mhugent
Date: 2008-12-05 02:34:36 -0500 (Fri, 05 Dec 2008)
New Revision: 9742

Modified:
   trunk/qgis/src/core/qgsvectorlayer.cpp
Log:
More elegant solution for last commit (as suggested by Juergen)

Modified: trunk/qgis/src/core/qgsvectorlayer.cpp
===================================================================
--- trunk/qgis/src/core/qgsvectorlayer.cpp	2008-12-04 20:29:51 UTC (rev 9741)
+++ trunk/qgis/src/core/qgsvectorlayer.cpp	2008-12-05 07:34:36 UTC (rev 9742)
@@ -1714,15 +1714,7 @@
       }
     }
 
-    //we need the feature attributes because the attributes values
-    //are copied to the new features
-    QgsAttributeList attributes;
-    if(mDataProvider)
-    {
-      attributes = mDataProvider->attributeIndexes();
-    }
-    attributes += mAddedAttributeIds.toList();
-    select( attributes, bBox, true, true );
+    select( pendingAllAttributesList(), bBox, true, true );
 
     QgsFeature f;
     while ( nextFeature( f ) )



More information about the QGIS-commit mailing list