Skip to content

Commit

Permalink
Merge pull request #1114 from ahuarte47/Issue_9429
Browse files Browse the repository at this point in the history
Fix bug #9429: no validate featureIds using all feature collection
  • Loading branch information
NathanW2 committed Jan 27, 2014
2 parents d4e3694 + 624ef2f commit af1bdf6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit af1bdf6

Please sign in to comment.