Skip to content


Fixed selection of features in vector layer so the map canvas doesn't…
Browse files Browse the repository at this point in the history
… get re-rendered many times during the operation.

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 10, 2008
1 parent 484a932 commit d6f4ba9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -883,10 +883,10 @@ void QgsVectorLayer::select(QgsRect & rect, bool lock)
QList<QgsFeature>::const_iterator select_it = selectedList.constBegin();
for(; select_it != selectedList.constEnd(); ++select_it)
select(select_it->featureId(), false); // don't emit signal (not to redraw it everytime)

emit selectionChanged();
emit selectionChanged(); // now emit signal to redraw layer

void QgsVectorLayer::invertSelection()
Expand Down

0 comments on commit d6f4ba9

Please sign in to comment.