Skip to content

Commit

Permalink
More elegant solution for last commit (as suggested by Juergen)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9742 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 5, 2008
1 parent 204a5c6 commit 2de9bfa
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -1714,15 +1714,7 @@ int QgsVectorLayer::splitFeatures( const QList<QgsPoint>& 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 ) )
Expand Down

0 comments on commit 2de9bfa

Please sign in to comment.