Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
#9429: no validate featureIds using all feature collection
- Loading branch information
Showing
with
0 additions
and
14 deletions.
-
+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 ); |
|
|
|
|
|