Skip to content

Commit

Permalink
#9429: no validate featureIds using all feature collection
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Jan 27, 2014
1 parent d4e3694 commit 624ef2f
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; 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 // invalidate cache
setCacheImage( 0 ); setCacheImage( 0 );


Expand Down

0 comments on commit 624ef2f

Please sign in to comment.