Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not index geometryless layers for snapping
With a lot of geometryless layers in a project reindexing on every mousemove
makes the UI unresponsive and brings up a "indexing layers" dialog with
progress bar repeatedly.
  • Loading branch information
m-kuhn committed Oct 20, 2015
1 parent 148e808 commit c45fc09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgssnappingutils.cpp
Expand Up @@ -88,6 +88,8 @@ QgsPointLocator* QgsSnappingUtils::temporaryLocatorForLayer( QgsVectorLayer* vl,

bool QgsSnappingUtils::willUseIndex( QgsVectorLayer* vl ) const
{
if ( vl->geometryType() == QGis::NoGeometry )
return false;
if ( mStrategy == IndexAlwaysFull )
return true;
else if ( mStrategy == IndexNeverFull )
Expand Down

0 comments on commit c45fc09

Please sign in to comment.