From 2de9bfa4c5e8641d5ec846d2ada128a7cab2d93b Mon Sep 17 00:00:00 2001 From: mhugent Date: Fri, 5 Dec 2008 07:34:36 +0000 Subject: [PATCH] More elegant solution for last commit (as suggested by Juergen) git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9742 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/core/qgsvectorlayer.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/core/qgsvectorlayer.cpp b/src/core/qgsvectorlayer.cpp index 9fc770495f1..f60d030a5fc 100644 --- a/src/core/qgsvectorlayer.cpp +++ b/src/core/qgsvectorlayer.cpp @@ -1714,15 +1714,7 @@ int QgsVectorLayer::splitFeatures( const QList& splitLine, bool topolo } } - //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 ) )