Skip to content


Applied patch from Adrien to remove negative selection ids when commi…
Browse files Browse the repository at this point in the history
…ting added features

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jul 15, 2008
1 parent 1d1bb77 commit db036f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2476,6 +2476,15 @@ bool QgsVectorLayer::commitChanges()
//Remove all negative Id in selected features as they are not valid any more after commit
if(mSelectedFeatureIds.size() > 0)
for(QgsFeatureList::iterator it = mAddedFeatures.begin(); it != mAddedFeatures.end(); ++it)

// done, remove features from the list
addedFeaturesOk = TRUE;
Expand Down

0 comments on commit db036f6

Please sign in to comment.