Skip to content

Commit 19b18bc

Browse files
committed
Clear non-indexable layers when they are removed
1 parent 193d377 commit 19b18bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/qgssnappingutils.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,9 @@ void QgsSnappingUtils::onLayersWillBeRemoved( const QStringList& layerIds )
514514
// remove locators for layers that are going to be deleted
515515
Q_FOREACH ( const QString& layerId, layerIds )
516516
{
517+
if ( mHybridNonindexableLayers.contains( layerId ) )
518+
mHybridNonindexableLayers.remove( layerId );
519+
517520
for ( LocatorsMap::iterator it = mLocators.begin(); it != mLocators.end(); )
518521
{
519522
if ( it.key()->id() == layerId )

0 commit comments

Comments
 (0)