Skip to content
Permalink
Browse files

Merge pull request #1114 from ahuarte47/Issue_9429

Fix bug #9429: no validate featureIds using all feature collection
  • Loading branch information
NathanW2 committed Jan 27, 2014
2 parents d4e3694 + 624ef2f commit af1bdf6694a56518d70ee241bc14d8401541876d
Showing with 0 additions and 14 deletions.
  1. +0 −14 src/core/qgsvectorlayer.cpp
@@ -2787,20 +2787,6 @@ void QgsVectorLayer::setSelectedFeatures( const QgsFeatureIds& ids )

mSelectedFeatureIds = ids;

QgsFeatureIds allIds = allFeatureIds();
QgsFeatureIds::iterator id = mSelectedFeatureIds.begin();
while ( id != mSelectedFeatureIds.end() )
{
if ( !allIds.contains( *id ) )
{
id = mSelectedFeatureIds.erase( id );
}
else
{
++id;
}
}

// invalidate cache
setCacheImage( 0 );

0 comments on commit af1bdf6

Please sign in to comment.
You can’t perform that action at this time.