Skip to content
Permalink
Browse files

#9429: no validate featureIds using all feature collection

  • Loading branch information
ahuarte47 committed Jan 27, 2014
1 parent d4e3694 commit 624ef2f114f1be53ea3d499db9add22010aa6481
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 624ef2f

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