Skip to content
Permalink
Browse files
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/qgis@7911 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 10, 2008
1 parent b330657 commit 15a5c1f8da1ee008ae7508ab607ce0bed8ccad45
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsvectorlayer.cpp
@@ -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());
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()

0 comments on commit 15a5c1f

Please sign in to comment.