Skip to content

Commit d6f4ba9

Browse files
author
wonder
committedJan 10, 2008
Fixed selection of features in vector layer so the map canvas doesn't get re-rendered many times during the operation.
git-svn-id: http://svn.osgeo.org/qgis/trunk@7911 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 484a932 commit d6f4ba9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,10 +883,10 @@ void QgsVectorLayer::select(QgsRect & rect, bool lock)
883883
QList<QgsFeature>::const_iterator select_it = selectedList.constBegin();
884884
for(; select_it != selectedList.constEnd(); ++select_it)
885885
{
886-
select(select_it->featureId());
886+
select(select_it->featureId(), false); // don't emit signal (not to redraw it everytime)
887887
}
888888

889-
emit selectionChanged();
889+
emit selectionChanged(); // now emit signal to redraw layer
890890
}
891891

892892
void QgsVectorLayer::invertSelection()

0 commit comments

Comments
 (0)
Please sign in to comment.