Skip to content
Permalink
Browse files

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 c45fc090d9482d0d4615950fe543d51ec9127287
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgssnappingutils.cpp
@@ -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 )

0 comments on commit c45fc09

Please sign in to comment.
You can’t perform that action at this time.